David schreef:
Hey, I'm a student in Britain. I was thinking
about using wikipedia for a school
project. It uses the related links of an article to show the links graphically.
I was wondering if anyone knew the best way of doing this? my two thoughts are
from the database dump if the related links are there. Or by html parsing.
Thanks for any help.
HTML parsing (also known as screenscraping) is not necessary
and almost
never a good idea. To obtain a list of links in a given article, use the
API:
http://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Ma…
For the full API documentation, see [1].
Roan Kattouw (Catrope)
[1]
http://www.mediawiki.org/wiki/API