Pywikibot is a Python-based framework to write bots for MediaWiki ([more information](https://www.mediawiki.org/wiki/Manual:Pywikibot)).
Thanks to work in Google Code-in, Pywikibot now has a script called `download_dump.py`. It downloads a Wikimedia database dump from http://dumps.wikimedia.org/ , and places the dump in a predicable directory for semi-automated use by other scripts and tests.
https://gerrit.wikimedia.org/r/#/c/399179/7/scripts/maintenance/download_dump.py@71
We shouldn't use `copyfile` for toolforge users,[Toolforge](https://tools.wmflabs.org/) users, but create a [symlink](https://en.wikipedia.org/wiki/Symbolic_link) to the file that already exists.
You are expected to provide a patch in Wikimedia Gerrit. but create a symlink to the file that already existsSee https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.