How to get all Wikipedia article titles?

这一生的挚爱 提交于 2019-12-02 15:06:43
Ainali

You'll find it on https://dumps.wikimedia.org

The latest List of page titles in main namespace for English Wikipedia as a database dump is here (69 MB).

If you rather want it through the API you use query and list=allpages but that only give you maximum 500 (5k for bots) at a time, so you will have to make more than 10 000 API calls for the English Wikipedia.

Example: https://en.wikipedia.org/w/api.php?action=query&format=xml&list=allpages&aplimit=max

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!