Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I download a specific set of the Wikipedia database? In particular, I'm interested in downloading all articles that fall under the mathematics portal and possibly the computer science portal. How can I do that?

share|improve this question
add comment

4 Answers 4

You can use a software called Kiwix, which is really easy to use.

EDIT

Wikipedia provide a tool to extract a subset of its content. You can search for "Mathematics" here, and then export every article within this category. You'll get a .xml file which you can browse using one of the listed tools here.

share|improve this answer
    
If you try to use Special:Export this way, it will only export the 7 articles that are directly under Category:Mathematics, not any of the other ten thousand math articles on Wikipedia. –  svick Jul 11 '13 at 19:16
add comment

You can take the *-pages-articles.xml.bz2 from Wikimedia backup dumps site and process them with WikiTaxi(download in upper left corner). Wikitaxi Import tool will create a .taxi(around 15Gb for Wikipedia) file out of the .bz2 file. That file will be used by WikiTaxi program to search through articles. The experience is very similar to the browser experience, with all articles available to the time of the dump, but without the images.

Or you can use Kiwix faster to setup because has the database is already made (but quite old), but WikiTaxi has the advantage that you can have the latest updated content.

share|improve this answer
add comment

You could use the Media Wiki API.

share|improve this answer
5  
It'd be great if you could expand your post a little, explaining how to achieve what the OP needs. –  slhck Jul 11 '13 at 10:43
add comment

go to en.wikipedia.org on the left sidebar, under "tools", click on "special pages".

in the new page, under "page tools" click on "export pages".

on the new page, type the name of each category you want. for example type mathematics (as shown in the picture below) and hit add.

enter image description here

then you should install Mediawiki and go to similar path and select "import pages".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.