Wikipedia Values

I am trying to make some values ​​using wikipedi value pages. I get a list of links from a page with ambiguous values ​​using a query

http://en.wikipedia.org/w/api.php?action=query&prop=links&format=json&titles=stack%20overflow_(disambiguation)

I get the links in order, but what is the fastest way to get the text that appears next to each link? Api does not make it available. Other parts of my code do an inevitably time-consuming job, wondering if anyone can suggest a quick hack ...

0
source share
1 answer

It is not possible to go from the "link list" to the "text next to the link" through the API The fastest (and probably only) way is to download a wikitext or HTML page and parse it.

+2

Source: https://habr.com/ru/post/1583987/


All Articles