How to get all Wikipedia article titles?

匿名 (未验证) 提交于 2019-12-03 02:44:02

问题:

How to get all Wikipedia article titles in one place without extra characters and pageids. Just the article's title. Something like this:

When I download wikipedia dump, I get this

Maybe I know a movement that might get me all pages but I wanted to get all pages in one take.

回答1:

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



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