I want to get all the articles names under a category and its sub-categories.
Options I'm aware of:
incategory:"music"
, but I didn't see an option to view that in XML.Please share your thoughts
To avoid extra work, try searching within your wiki before creating a new category. The list of all categories can be found in "Special pages" in the "tools" box of the sidebar.
To create a category, first add an article to that category. Do this by editing the article page. At the bottom, but before the interwiki links (if any are present), add the name of the new category, (e.g.: [[Category:New category name]] ), and save your edit.
Simply scroll down to the bottom of a page and: Click on the Add category button and start typing in a category name. You can use an already-established category (suggestions will appear as you type) or add a new one. Once you are done, hit save and the category will appear on the article.
Including articles, the total number of pages is 56,416,157. Being pages themselves, articles make up 11.6 percent of all pages on Wikipedia. As of 2 April 2022, the size of the current version of all articles compressed is about 20.69 GB without media.
The following resource will help you to download all pages from the category and all its subcategories:
http://en.wikipedia.org/wiki/Wikipedia:CatScan
There is also an API available here:
https://www.mediawiki.org/wiki/API:Categorymembers
You can do this through the following two API methods:
YOUR_URL/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Music
YOUR_URL/api.php?action=query&format=json&list=categorymembers&cmtype=subcat&cmtitle=Category:Music
You can get more info on Mediawiki API
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With