Home >  > 采集wikipedia

采集wikipedia

一、方法一

https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=Stack%20Overflow

结果:

代码2

https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&titles=Stack%20Overflow

方法二:

https://en.wikipedia.org/api/rest_v1/page/summary/Stack_Overflow

参考:
https://stackoverflow.com/questions/8555320/is-there-a-wikipedia-api-just-for-retrieve-the-content-summary

本文暂无标签