3 ms·
For example, now I know for a fact I can easily manipulate Wikipedia's data dump using Python thanks to this JSON change. import json js = json.loads(
by sillysaurus2 13y ago
For example, now I know for a fact I can easily manipulate Wikipedia's data dump using Python thanks to this JSON change.
import json
js = json.loads(wikidump)
That's it. The only reason it's so simple is thanks to this JSON conversion.
XML? No clue how to manipulate it properly. I could figure it out of course, but now I don't have to. JSON + Python just works™.
- diegolo 13y agoyes, and also it makes easy to manipulate the dump using Hadoop, and retrieving some values for all the article using jq http://stedolan.github.io/jq/ http://stedolan.github.io/jq/, could you do the same with XML? Btw You can find a little sample of the dump here: https://dl.dropboxusercontent.com/u/4663256/tmp/json-wikipedia-sample.json https://dl.dropboxusercontent.com/u/4663256/tmp/json-wikiped...