I want to have the title of all documents in Wikipedia as a text file. What should I do?


I need the table of contents in Wikipedia in my design work. How do I get the title of every document as a text file?


https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-all-titles.gz (or https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-all-titles-in-ns0.gz if you just need articles).


An other possibility is to use https://www.mediawiki.org/wiki/API:Allpages.