Quantcast
Channel: Data Unbound » Wikipedia
Viewing all articles
Browse latest Browse all 2

pageid/curid as a unique id for Wikipedia pages

$
0
0

In my learning how to program Freebase, I've come across links to the Wikipedia that make use of a curid parameter.  For example,

http://en.wikipedia.org/wiki/index.html?curid=296716

is the same as

http://en.wikipedia.org/wiki/Daniel_Akaka

At least, the two pages seem to be the same thing as far as I can see.

How to do a lookup btween curid and the page title?  One way is ff we're screen-scraping, the page source of http://en.wikipedia.org/wiki/Daniel_Akaka contains

var wgArticleId = "296716";

And if you go to http://en.wikipedia.org/wiki/index.html?curid=296716 lots of indication of what the title is, including the permanent link (e.g., http://en.wikipedia.org/w/index.php?title=Daniel_Akaka&oldid=278490360)

To dig deeper, I might want to understand the mediawiki data structure and the mediawiki API.


Viewing all articles
Browse latest Browse all 2

Trending Articles