| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Refractive Outcomes - Database Download refractiveoutcomes.com | DrugScope | Databases | Databases home drugscope.org.uk | Macular Disease Society :: Downloads & Publications :: Audio Downloads &... maculardisease.org |
For scheduling, related tools etc., see Meta:Data dumps. Wikipedia offers free copies of all available content to interested users. These databases can be used for mirroring, personal use, informal backups, offline use or database queries (such as for Wikipedia:Maintenance). All text content is multi-licensed under the Creative Commons Attribution-ShareAlike 3.0 License (CC-BY-SA) and the GNU Free Documentation License (GFDL). Images and other files are available under different terms, as detailed on their description pages. For our advice about complying with these licenses, see Wikipedia:Copyrights. [edit] Where do I get...
In the http://download.wikimedia.org/ directory you will find the latest SQL dumps for the projects, not just English. For example, (others exist, just select the appropriate two letter language code and the appropriate project):
Some other directories (e.g. simple, nostalgia) exist, with the same structure. [edit] Latest complete dump of english wikipediaAs of 17 January 2009[update], it seems that all snapshots of pages-meta-history.xml.7z hosted at http://download.wikipedia.org/enwiki/ are missing. The developers at Wikimedia Foundation are working to address this issue (http://lists.wikimedia.org/pipermail/wikitech-l/2009-January/040841.html). There are other ways to obtain this file:
Warning: the file enwiki-20080103-pages-meta-history.xml.7z decompresses to 2.8 Terabytes. Before wasting Internet Archive's bandwidth, ask yourself: do you really have enough hard disk space to work on this file? Can't you use Wikipedia's API instead and work on a small random sample of the dataset? [edit] Images and uploaded filesCurrently Wikipedia does not allow or provide facilities to download all images. As of 17 May 2007[update], Wikipedia disabled or neglected all viable bulk downloads of images including torrent trackers. Therefore, there is no way to download image dumps other than scraping Wikipedia pages up or using Wikix, which converts a database dump into a series of scripts to fetch the images. Unlike most article text, images are not necessarily licensed under the GFDL & CC-BY-SA-3.0. They may be under one of many free licenses, in the public domain, believed to be fair use, or even copyright infringements (which should be deleted). In particular, use of fair use images outside the context of Wikipedia or similar works may be illegal. Images under most licenses require a credit, and possibly other attached copyright information. This information is included in image description pages, which are part of the text dumps available from download.wikimedia.org. In conclusion, download these images at your own risk (Legal) [edit] Dealing with large filesYou may run into problems downloading files of unusual size. Some older operating systems, file systems, and web clients have a hard limit of 2GB on file size. If you seem to be hitting this limit, try using wget version 1.10 or greater, cURL version 7.11.1-1 or greater, or a recent version of lynx (using -dump). It is recommended that you check the MD5 sums (provided in a file in the download directory) to make sure your download was complete and accurate. You can check this by running the "md5sum" command on the files you downloaded. Given how large the files are, this may take some time to calculate. Due to the technical details of how files are stored, file sizes may be reported differently on different filesystems, and so are not necessarily reliable. Also, you may have experienced corruption during the download, though this is unlikely. The file size limits for the various file systems are as follows:
Many standard programming libraries and functions may also cause problems when accessing large files. For example, the standard C function, fopen, limits file sizes to 2GB on 32-bit systems. This is due to it using signed 32-bit integers, limiting file pointers to 2^31 bits (2GB). [edit] Why not just retrieve data from wikipedia.org at runtime?Suppose you are building a piece of software that at certain points displays information that came from wikipedia. If you want your program to display the information in a different way than can be seen in the live version, you'll probably need the wikicode that is used to enter it, instead of the finished HTML. Also if you want to get all of the data, you'll probably want to transfer it in the most efficient way that's possible. The wikipedia.org servers need to do quite a bit of work to convert the wikicode into html. That's time consuming both for you and for the wikipedia.org servers, so simply spidering all pages is not the way to go. To access any article in XML, one at a time, access Special:Export/Title of the article. Read more about this at Special:Export. Please be aware that live mirrors of Wikipedia that are dynamically loaded from the Wikimedia servers are prohibited. Please see Wikipedia:Mirrors and forks. [edit] Please do not use a web crawlerPlease do not use a web crawler to download large numbers of articles. Aggressive crawling of the server can cause a dramatic slow-down of Wikipedia. Our robots.txt blocks many ill-behaved bots. [edit] Sample blocked crawler email
Note that the robots.txt currently has a commented out Crawl-delay: ## *at least* 1 second please. preferably more :D ## we're disabling this experimentally 11-09-2006 #Crawl-delay: 1 Please be sure to use an intelligent non-zero delay regardless. [edit] Doing SQL queries on the current database dumpYou can do SQL queries on the current database dump (as a replacement for the disabled Special:Asksql page) . For more information about this service, see de:Benutzer:Filzstift/wikisign.org (in German only). [edit] Dealing with compressed filesApproximate file sizes are given for the compressed dumps; uncompressed they'll be significantly larger. Some older archives are compressed with gzip, which is compatible with PKZIP (the most common Windows format). Newer archives are available in both bzip2 and 7zip compressed formats. Windows users may not have a bzip2 decompressor on hand; a command-line Windows version of bzip2 (from here) is available for free under a BSD license. The LGPL'd GUI file archiver, 7-zip [1], is also able to open bz2 compressed files, and is available for free. MacOS X ships with the command-line bzip2 tool. Please note that older versions of bzip2 may not be able to handle files larger than 2GB, so make sure you have the latest version if you experience any problems. [edit] Database schema[edit] SQL schemaSee also: mw:Manual:Database layout The sql file used to initialize a MediaWiki database can be found here. [edit] XML schemaThe XML schema for each dump is defined at the top of the file. [edit] Help parsing dumps for use in scripts
[edit] Help importing dumps into MySQLSee: You can find extensive information on downloading and importing dumps at http://github.com/babilen/wp-tools/ [dead link] [edit] Static HTML tree dumps for mirroring or CD distributionMediaWiki 1.5 includes routines to dump a wiki to HTML, rendering the HTML with the same parser used on a live wiki. As the following page states, putting one of these dumps on the web unmodified will constitute a trademark violation. They are intended for private viewing in an intranet or desktop installation.
See also:
[edit] Dynamic HTML generation from a local XML database dumpInstead of converting a database dump file to many pieces of static HTML, one can also use a dynamic HTML generator. Browsing a wiki page is just like browsing a Wiki site, but the content is fetched and converted from a local dump file upon request from the browser. [edit] WikiFilterWikiFilter is a program which allows you to browse over 100 dump files without visiting a Wiki site. [edit] WikiFilter system requirements
[edit] How to set up WikiFilter
[edit] WikiTaxiWikiTaxi is an offline-reader for wikis in MediaWiki format. It enables users to search and browse popular wikis like Wikipedia, Wikiquote, or WikiNews, without being connected to the Internet. WikiTaxi works well with different languages like English, German, Turkish, and others. [edit] WikiTaxi system requirements
[edit] WikiTaxi usage
For WikiTaxi reading, only two files are required: WikiTaxi.exe and the .taxi database. Copy them to any storage device (memory stick or memory card) or burn them to a CD or DVD and take your Wikipedia with you wherever you go! [edit] Offline wikipedia reader(for Mac OS X, Linux, FreeBSD/OpenBSD/NetBSD, and other Unices) Build a fast Wikipedia offline reader describes a step-by-step process than can be followed by UNIX users, to install a (fast) offline reader of Wikipedia (and any other mediawiki-based content). It depends on the pages-articles XML dump file, which is periodically published by wikimedia, and uses a set of open-source tools and technologies to quickly index the data and offer a local, offline, viewer. [edit] Main features
[edit] Rsync2This section is out of date. You can use rsync to download the database. For example, this command will download the current English database: rsync rsync://download.wikimedia.org/dumps/wikipedia/en/cur_table.sql.bz2 . --partial --progress The "--partial" switch prevents rsync from deleting the file in the event the download is interrupted. You may then issue the very same command again to resume the download. The "--progress" switch will show the download progress; for less verbose output, do not use this switch. The rsync utility is designed to synchronize files in a manner such that only the differences between the files are transferred. This provides a considerable performance enhancement, especially when synchronizing large files that have relatively few changes. However, if a file is compressed or encrypted, rsync will not perform well; in fact, it may perform worse than downloading a fresh copy of the file. Many of the database files are only available compressed. Therefore, there is little, if anything, to be gained by attempting to use rsync as a means of expediting an update of an older SQL dump. If the SQL dumps were available uncompressed, this process should work extremely well, especially if rsync is invoked with the on-the-fly compression switch (-z). It is uncertain as to whether uncompressed database dumps will become available. However, rsync does remain a useful and expedient tool for resuming downloads that have been interrupted, repairing downloads that have become corrupted, or updating any files that are not compressed (i.e. upload.tar). For more information, see rsync. [edit] Technical notes
[edit] See also
|
| ↑ top of page ↑ | about thumbshots |