only act on pages in article namespace
This commit is contained in:
parent
ceb3df2fdb
commit
c86fb77f9e
2 changed files with 10 additions and 3 deletions
|
|
@ -49,8 +49,8 @@ if (!process.env.MW_USERNAME || !process.env.MW_PASSWORD) {
|
|||
const mw = new MediaWikiClient('https://ffxiv.consolegameswiki.com/mediawiki');
|
||||
await mw.login(process.env.MW_USERNAME, process.env.MW_PASSWORD);
|
||||
|
||||
// Get pages in the "Missing EDB ID" category
|
||||
const itemPagesWithoutEDBIDs = await mw.listCategoryPages('Category:Missing EDB ID', +process.env.LIMIT || 500);
|
||||
// Get pages in the "Missing EDB ID" category from the main article namespace
|
||||
const itemPagesWithoutEDBIDs = await mw.listCategoryPages('Category:Missing EDB ID', [0], +process.env.LIMIT || 500);
|
||||
console.log('Processing', itemPagesWithoutEDBIDs.length, 'item pages from [[Category:Missing EDB ID]]\n');
|
||||
|
||||
for (const {title} of itemPagesWithoutEDBIDs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue