initial import of solutions for wikipedia data challenges
[wikipedia-cdsw-solutions] / solution_3.py
1 # Find out what other data or metadata you can print out for a a
2 # revision for an article.
3
4 # The answer to this question comes down to the possibily options you
5 # can give to the "rvprop" parameter to requests. You can find that
6 # list here: https://www.mediawiki.org/wiki/API:Revisions#Parameters
7 #
8 # Here's the list at the writing of writing:
9 #
10 # rvprop: Which properties to get for each revision
11 #     ids: Get both of these IDs: revid, parentid (default) MW 1.11+
12 #     flags: Whether the revision was a minor edit (default) MW 1.11+
13 #     timestamp: The date and time the revision was made (default)
14 #     user: The user who made the revision, as well as userhidden and anon flags (default) MW 1.8
15 #     userid: User id of revision creator, as well as userhidden and anon flags MW 1.17+
16 #     sha1: SHA-1 (base 16) of the revision MW 1.19+
17 #     contentmodel: Content model id of the revision MW 1.21+
18 #     comment: The edit comment (default)
19 #     parsedcomment: The edit/log comment in HTML format with wikilinks and section references expanded into hyperlinks MW 1.16
20 #     size: The size of the revision text in bytes MW 1.11+
21 #     content: The revision content. If set, the maximum limit will be 10 times as low
22 #     tags: Any tags for this revision, such as those added by AbuseFilter MW 1.16+
23

Benjamin Mako Hill || Want to submit a patch?