Created
June 6, 2012 21:21
-
-
Save summer4096/2884879 to your computer and use it in GitHub Desktop.
This snippet will download the May 2012 wikipedia dump, extract it, convert it to sql, and feed it to mysql, all at the same time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://dumps.wikimedia.org/enwiki/20120502/enwiki-20120502-pages-articles-multistream.xml.bz2 | bzcat | ./import.pl | mysql -f -uuser -ppass --default-character-set=utf8 wikipedia |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment