From d4002ec592f7673a01db3181bd37f457f03dfe48 Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Thu, 30 Jul 2020 04:16:26 -0500 Subject: [PATCH] Add additional categories for gens 1 - 4. --- find_pages | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/find_pages b/find_pages index 1cb0aec..ab03670 100755 --- a/find_pages +++ b/find_pages @@ -6,12 +6,18 @@ import json GCL_URL = "https://glitchcity.info/" API_ENDPOINT = "/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:{}&prop=info&gcmlimit=100&format=json" -CATEGORIES = ["Generation I glitches", "Generation II glitches", "Generation III glitches", "Generation IV glitches"] +CATEGORIES = [ + "Generation I glitches", "Generation II glitches", "Generation III glitches", "Generation IV glitches", + "Generation I glitch Pokémon", "Generation II glitch Pokémon", "Generation III glitch Pokémon", "Generation IV glitch Pokémon", + "Pokémon Red and Blue glitch moves", "Pokémon Yellow glitch moves", "Generation II glitch moves", + "Generation I glitch items", "Generation II glitch items", "Generation IV glitch items", + "Generation I glitch Trainers", "Generation II glitch Trainers" +] FILTER_MODIFIED_SINCE_THEN = date(2020, 3, 31) def get_pages_for_category(url, category): - category = category.replace(" ", "_") + category = category.replace(" ", "_").replace("é", "%C3%A9") pages = {} continue_param = None while True: