Arpit Agarwal
Arpit Agarwal

Reputation: 667

How to get an articles revision history from Wikipedia

I am trying to get revision History from Wikipedia articles so that I can obtain latest changes or events that have happened with reference to that article .

http://en.wikipedia.org/wiki/Wikipedia:Syndication mentions about the RSS Feeds that can be obtained wrt to an article by this RSS URL http://en.wikipedia.org/w/index.php?title=ARTICLENAME&action=history&feed=rss .

But the above URL has no parameters as to control the revision history dates. I would like to know if there is any better way to obtain article revision history through a computer program or any way to tweak the given RSS URL.

Upvotes: 0

Views: 334

Answers (2)

alchimista
alchimista

Reputation: 196

You can also try with pywikipediabot, try the snapshot:

import wikipedia

site= wikipedia.Site("pt", "wikipedia")

wpage = wikipedia.Page(site, u"Portugal")

for i in wpage.getVersionHistory():
    print i

Upvotes: 0

svick
svick

Reputation: 244757

You can use the MediaWiki API for that. Specifically, the revisions module.

Upvotes: 4

Related Questions