sharnett / presentr

a glitchy and beautiful slide show presentation generator
1 stars 1 forks source link

disambiguation pages #22

Open sharnett opened 12 years ago

sharnett commented 12 years ago

Example: burger

The wiki text we put into the presentation is garbage for these. Ideally we'd be able to recognize that it's a disambiguation page and follow the first link or something

obsjames commented 12 years ago

One way to check if it's a disambifuation page is to query section = 0, titles = "section" for the line of text "may refer to" which accompanies most (check!) disambiguation pages. So for the case of "burger" see http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&titles=burger&format=json