From d7b81da2b6eb125af014262a2225dbb6f741fad3 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Fri, 25 Sep 2020 00:26:31 +0200 Subject: [PATCH] quests quefaire --- cogs/wynncraft/wynncraftcog.py | 164 ++ temp.py | 2983 ++++++++++++++++++++++++++++++++ 2 files changed, 3147 insertions(+) create mode 100644 temp.py diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index 98d2177..f53773a 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -121,11 +121,175 @@ class WynncraftCog(commands.Cog): "The level 12 mushroom cave on the Black Road between Ternaves and Detlas."], # 21-30 [""] + ], + "quests": [ + {"level": 1, "name": "King's Recruit", "url": "https://wynncraft.gamepedia.com/King%27s_Recruit"}, + {"level": 1, "name": "Enzan's Brother", "url": "https://wynncraft.gamepedia.com/Enzan%27s_Brother"}, + {"level": 2, "name": "Poisoning the Pest", "url": "https://wynncraft.gamepedia.com/Poisoning_the_Pest"}, + {"level": 4, "name": "Cook Assistant", "url": "https://wynncraft.gamepedia.com/Cook_Assistant"}, + {"level": 5, "name": "Tunnel Trouble", "url": "https://wynncraft.gamepedia.com/Tunnel_Trouble"}, + {"level": 5, "name": "The Sewers of Ragni", "url": "https://wynncraft.gamepedia.com/The_Sewers_of_Ragni"}, + {"level": 6, "name": "Infested Plants", "url": "https://wynncraft.gamepedia.com/Infested_Plants"}, + {"level": 8, "name": "Underwater", "url": "https://wynncraft.gamepedia.com/Underwater"}, + {"level": 10, "name": "Elemental Exercise", "url": "https://wynncraft.gamepedia.com/Elemental_Exercise"}, + {"level": 12, "name": "Mushroom Man", "url": "https://wynncraft.gamepedia.com/Mushroom_Man"}, + {"level": 14, "name": "Creeper Infiltration", "url": "https://wynncraft.gamepedia.com/Creeper_Infiltration"}, + {"level": 14, "name": "Arachnids' Ascent", "url": "https://wynncraft.gamepedia.com/Arachnids%27_Ascent"}, + {"level": 14, "name": "Deja Vu", "url": "https://wynncraft.gamepedia.com/Deja_Vu"}, + {"level": 15, "name": "Potion Making", "url": "https://wynncraft.gamepedia.com/Potion_Making"}, + {"level": 18, "name": "Maltics Well", "url": "https://wynncraft.gamepedia.com/Maltic%27s_Well"}, + {"level": 20, "name": "Grave Digger", "url": "https://wynncraft.gamepedia.com/Grave_Digger"}, + {"level": 21, "name": "Macabre Masquerade Hallowynn 2014", "url": "https://wynncraft.gamepedia.com/Macabre_Masquerade_%27%27Hallowynn_2014%27%27"}, + {"level": 21, "name": "Studying the Corrupt", "url": "https://wynncraft.gamepedia.com/Studying_the_Corrupt"}, + {"level": 23, "name": "Pit of the Dead", "url": "https://wynncraft.gamepedia.com/Pit_of_the_Dead_(Quest)"}, + {"level": 23, "name": "Cluck Cluck", "url": "https://wynncraft.gamepedia.com/Cluck_Cluck"}, + {"level": 24, "name": "Dwelling Walls", "url": "https://wynncraft.gamepedia.com/Dwelling_Walls"}, + {"level": 24, "name": "The Dark Descent", "url": "https://wynncraft.gamepedia.com/The_Dark_Descent"}, + {"level": 25, "name": "Recover the Past", "url": "https://wynncraft.gamepedia.com/Recover_the_Past"}, + {"level": 26, "name": "Lost Tower", "url": "https://wynncraft.gamepedia.com/Lost_Tower"}, + {"level": 26, "name": "The Corrupted Village", "url": "https://wynncraft.gamepedia.com/The_Corrupted_Village"}, + {"level": 28, "name": "The Mercenary", "url": "https://wynncraft.gamepedia.com/The_Mercenary"}, + {"level": 28, "name": "Misadventure on the Sea", "url": "https://wynncraft.gamepedia.com/Misadventure_on_the_Sea"}, + {"level": 30, "name": "Craftmas Chaos", "url": "https://wynncraft.gamepedia.com/Craftmas_Chaos"}, + {"level": 31, "name": "Green Gloop", "url": "https://wynncraft.gamepedia.com/Green_Gloop"}, + {"level": 32, "name": "A Sandy Scandal", "url": "https://wynncraft.gamepedia.com/A_Sandy_Scandal"}, + {"level": 33, "name": "Meaningful Holiday", "url": "https://wynncraft.gamepedia.com/Meaningful_Holiday"}, + {"level": 33, "name": "Kingdom of Sand", "url": "https://wynncraft.gamepedia.com/Kingdom_of_Sand"}, + {"level": 34, "name": "Stable Story", "url": "https://wynncraft.gamepedia.com/Stable_Story"}, + {"level": 35, "name": "Tribal Aggression", "url": "https://wynncraft.gamepedia.com/Tribal_Aggression"}, + {"level": 35, "name": "WynnExcavation Site A", "url": "https://wynncraft.gamepedia.com/WynnExcavation_Site_A"}, + {"level": 36, "name": "Wrath of the Mummy", "url": "https://wynncraft.gamepedia.com/Wrath_of_the_Mummy"}, + {"level": 38, "name": "Canyon Condor", "url": "https://wynncraft.gamepedia.com/Canyon_Condor"}, + {"level": 39, "name": "Pirate's Trove", "url": "https://wynncraft.gamepedia.com/Pirate%27s_Trove"}, + {"level": 40, "name": "Ice Nations", "url": "https://wynncraft.gamepedia.com/Ice_Nations"}, + {"level": 40, "name": "Tower of Ascension", "url": "https://wynncraft.gamepedia.com/Tower_of_Ascension_(Quest)"}, + {"level": 41, "name": "Heart of Llevigar", "url": "https://wynncraft.gamepedia.com/Heart_of_Llevigar"}, + {"level": 42, "name": "Star Thief", "url": "https://wynncraft.gamepedia.com/Star_Thief"}, + {"level": 42, "name": "Clearing the Camps", "url": "https://wynncraft.gamepedia.com/Clearing_the_Camps"}, + {"level": 43, "name": "Underice", "url": "https://wynncraft.gamepedia.com/Underice"}, + {"level": 43, "name": "Fate of the Fallen", "url": "https://wynncraft.gamepedia.com/Fate_of_the_Fallen"}, + {"level": 44, "name": "Green Skinned Trouble", "url": "https://wynncraft.gamepedia.com/Green_Skinned_Trouble"}, + {"level": 45, "name": "Bob's Lost Soul", "url": "https://wynncraft.gamepedia.com/Bob%27s_Lost_Soul"}, + {"level": 46, "name": "Wynn Excavation Site B", "url": "https://wynncraft.gamepedia.com/WynnExcavation_Site_B"}, + {"level": 48, "name": "Frost Bite", "url": "https://wynncraft.gamepedia.com/Frost_Bite"}, + {"level": 49, "name": "An Iron Heart Part I", "url": "https://wynncraft.gamepedia.com/An_Iron_Heart_Part_I"}, + {"level": 49, "name": "Rise of the Quartron", "url": "https://wynncraft.gamepedia.com/Rise_of_the_Quartron"}, + {"level": 49, "name": "The House of Twain", "url": "https://wynncraft.gamepedia.com/The_House_of_Twain_(Quest)"}, + {"level": 50, "name": "A Grave Mistake", "url": "https://wynncraft.gamepedia.com/A_Grave_Mistake"}, + {"level": 51, "name": "The Maiden Tower", "url": "https://wynncraft.gamepedia.com/The_Maiden_Tower"}, + {"level": 52, "name": "Jungle Fever", "url": "https://wynncraft.gamepedia.com/Jungle_Fever"}, + {"level": 52, "name": "Crop Failure", "url": "https://wynncraft.gamepedia.com/Crop_Failure"}, + {"level": 52, "name": "Corrupted Betrayal", "url": "https://wynncraft.gamepedia.com/Corrupted_Betrayal"}, + {"level": 53, "name": "Master Piece", "url": "https://wynncraft.gamepedia.com/Master_Piece"}, + {"level": 53, "name": "Death Whistle", "url": "https://wynncraft.gamepedia.com/Death_Whistle"}, + {"level": 54, "name": "The Shadow of the Beast", "url": "https://wynncraft.gamepedia.com/The_Shadow_of_the_Beast"}, + {"level": 54, "name": "The Worm Holes", "url": "https://wynncraft.gamepedia.com/The_Worm_Holes"}, + {"level": 55, "name": "WynnExcavation Site C", "url": "https://wynncraft.gamepedia.com/WynnExcavation_Site_C"}, + {"level": 55, "name": "Zhight Island", "url": "https://wynncraft.gamepedia.com/Zhight_Island_(Quest)"}, + {"level": 57, "name": "The Passage", "url": "https://wynncraft.gamepedia.com/The_Passage_(Quest)"}, + {"level": 58, "name": "An Iron Heart Part II", "url": "https://wynncraft.gamepedia.com/An_Iron_Heart_Part_II"}, + {"level": 59, "name": "The Order of the Grook", "url": "https://wynncraft.gamepedia.com/The_Order_of_the_Grook"}, + {"level": 60, "name": "Beneath the Depths", "url": "https://wynncraft.gamepedia.com/Beneath_the_Depths"}, + {"level": 61, "name": "Redbeard's Booty", "url": "https://wynncraft.gamepedia.com/Redbeard%27s_Booty"}, + {"level": 61, "name": "Reclaiming the House", "url": "https://wynncraft.gamepedia.com/Reclaiming_the_House"}, + {"level": 62, "name": "Lost in the Jungle", "url": "https://wynncraft.gamepedia.com/Lost_in_the_Jungle"}, + {"level": 62, "name": "Taproot", "url": "https://wynncraft.gamepedia.com/Taproot_(Quest)"}, + {"level": 63, "name": "Out of My Mind", "url": "https://wynncraft.gamepedia.com/Out_of_my_Mind"}, + {"level": 64, "name": "A Fighting Species", "url": "https://wynncraft.gamepedia.com/A_Fighting_Species"}, + {"level": 64, "name": "The Headless Hunt", "url": "https://wynncraft.gamepedia.com/The_Headless_Hunt"}, + {"level": 65, "name": "Lost Royalty", "url": "https://wynncraft.gamepedia.com/Lost_Royalty"}, + {"level": 66, "name": "Lost Soles", "url": "https://wynncraft.gamepedia.com/Lost_Soles"}, + {"level": 67, "name": "From the Mountains", "url": "https://wynncraft.gamepedia.com/From_the_Mountains"}, + {"level": 67, "name": "Memory Paranoia", "url": "https://wynncraft.gamepedia.com/Memory_Paranoia"}, + {"level": 68, "name": "Temple of Legends", "url": "https://wynncraft.gamepedia.com/Temple_of_the_Legends_(Quest)"}, + {"level": 69, "name": "Grand Youth", "url": "https://wynncraft.gamepedia.com/Grand_Youth"}, + {"level": 69, "name": "Lazarus Pit", "url": "https://wynncraft.gamepedia.com/Lazarus_Pit"}, + {"level": 70, "name": "Haven Antiquity", "url": "https://wynncraft.gamepedia.com/Haven_Antiquity"}, + {"level": 70, "name": "WynnExcavation Site D", "url": "https://wynncraft.gamepedia.com/WynnExcavation_Site_D"}, + {"level": 70, "name": "Shattered Minds", "url": "https://wynncraft.gamepedia.com/Shattered_Minds"}, + {"level": 71, "name": "Finding The Light", "url": "https://wynncraft.gamepedia.com/Finding_The_Light"}, + {"level": 72, "name": "Forbidden Prison", "url": "https://wynncraft.gamepedia.com/Forbidden_Prison_(Quest)"}, + {"level": 72, "name": "Eye of the Storm", "url": "https://wynncraft.gamepedia.com/Eye_of_the_Storm"}, + {"level": 73, "name": "Hollow Sirene", "url": "https://wynncraft.gamepedia.com/Hollow_Sirene"}, + {"level": 73, "name": "Troubled Tribesmen", "url": "https://wynncraft.gamepedia.com/Troubled_Tribesmen"}, + {"level": 74, "name": "Acquiring Credentials", "url": "https://wynncraft.gamepedia.com/Acquiring_Credentials"}, + {"level": 74, "name": "Reincarnation", "url": "https://wynncraft.gamepedia.com/Reincarnation"}, + {"level": 74, "name": "Murder Mystery", "url": "https://wynncraft.gamepedia.com/Murder_Mystery"}, + {"level": 74, "name": "The Realm of Light", "url": "https://wynncraft.gamepedia.com/The_Realm_of_Light_(Quest)"}, + {"level": 75, "name": "Flight in Distress", "url": "https://wynncraft.gamepedia.com/Flight_in_Distress"}, + {"level": 75, "name": "The Ultimate Weapon", "url": "https://wynncraft.gamepedia.com/The_Ultimate_Weapon"}, + {"level": 76, "name": "The Bigger Picture", "url": "https://wynncraft.gamepedia.com/The_Bigger_Picture"}, + {"level": 76, "name": "Aldorei's Secret Part I", "url": "https://wynncraft.gamepedia.com/Aldorei%27s_Secret_Part_I"}, + {"level": 77, "name": "Purple and Blue", "url": "https://wynncraft.gamepedia.com/Purple_and_Blue"}, + {"level": 77, "name": "The Hunger of Gerts Part 1", "url": "https://wynncraft.gamepedia.com/The_Hunger_of_Gerts_Part_1"}, + {"level": 78, "name": "Aldorei's Secret Part II", "url": "https://wynncraft.gamepedia.com/Aldorei%27s_Secret_Part_II"}, + {"level": 78, "name": "The Hunger of Gerts Part 2", "url": "https://wynncraft.gamepedia.com/The_Hunger_of_Gerts_Part_2"}, + {"level": 79, "name": "Fallen Delivery", "url": "https://wynncraft.gamepedia.com/Fallen_Delivery"}, + {"level": 80, "name": "???", "url": "https://wynncraft.gamepedia.com/%3F%3F%3F"}, + {"level": 80, "name": "From the Bottom", "url": "https://wynncraft.gamepedia.com/From_the_Bottom"}, + {"level": 80, "name": "General's Orders", "url": "https://wynncraft.gamepedia.com/General%27s_Orders"}, + {"level": 80, "name": "The Qira Hive", "url": "https://wynncraft.gamepedia.com/The_Qira_Hive_(Quest)"}, + {"level": 81, "name": "The Thanos Vaults", "url": "https://wynncraft.gamepedia.com/The_Thanos_Vaults"}, + {"level": 82, "name": "The Belly of the Beast", "url": "https://wynncraft.gamepedia.com/The_Belly_of_the_Beast"}, + {"level": 83, "name": "A Marauder's Dues", "url": "https://wynncraft.gamepedia.com/A_Marauder%27s_Dues"}, + {"level": 83, "name": "The Envoy Part I", "url": "https://wynncraft.gamepedia.com/The_Envoy_Part_I"}, + {"level": 84, "name": "The Canyon Guides", "url": "https://wynncraft.gamepedia.com/The_Canyon_Guides"}, + {"level": 85, "name": "The Canary Calls", "url": "https://wynncraft.gamepedia.com/The_Canary_Calls"}, + {"level": 85, "name": "The Lost", "url": "https://wynncraft.gamepedia.com/The_Lost"}, + {"level": 86, "name": "Cowfusion", "url": "https://wynncraft.gamepedia.com/Cowfusion"}, + {"level": 86, "name": "Desperate Metal", "url": "https://wynncraft.gamepedia.com/Desperate_Metal"}, + {"level": 87, "name": "Beyond the Grave", "url": "https://wynncraft.gamepedia.com/Beyond_the_Grave"}, + {"level": 87, "name": "Mixed Feelings", "url": "https://wynncraft.gamepedia.com/Mixed_Feelings"}, + {"level": 88, "name": "The Hidden City", "url": "https://wynncraft.gamepedia.com/The_Hidden_City"}, + {"level": 89, "name": "The Envoy Part II", "url": "https://wynncraft.gamepedia.com/The_Envoy_Part_II"}, + {"level": 89, "name": "Enter the Dojo", "url": "https://wynncraft.gamepedia.com/Enter_the_Dojo"}, + {"level": 90, "name": "Fantastic Voyage", "url": "https://wynncraft.gamepedia.com/Fantastic_Voyage"}, + {"level": 91, "name": "Dwarves and Doguns Part I", "url": "https://wynncraft.gamepedia.com/Dwarves_and_Doguns_Part_I"}, + {"level": 92, "name": "Dwarves and Doguns Part II", "url": "https://wynncraft.gamepedia.com/Dwarves_and_Doguns_Part_II"}, + {"level": 93, "name": "Dwarves and Doguns Part III", "url": "https://wynncraft.gamepedia.com/Dwarves_and_Doguns_Part_III"}, + {"level": 94, "name": "Dwarves and Doguns Part IV", "url": "https://wynncraft.gamepedia.com/Dwarves_and_Doguns_Part_IV"}, + {"level": 95, "name": "One Thousand Meters Under", "url": "https://wynncraft.gamepedia.com/One_Thousand_Meters_Under"}, + {"level": 96, "name": "Recipe For Disaster", "url": "https://wynncraft.gamepedia.com/Recipe_For_Disaster"}, + {"level": 97, "name": "The Fortuneteller", "url": "https://wynncraft.gamepedia.com/The_Fortuneteller"}, + {"level": 98, "name": "Royal Trials", "url": "https://wynncraft.gamepedia.com/Royal_Trials"}, + {"level": 100, "name": "A Journey Beyond", "url": "https://wynncraft.gamepedia.com/A_Journey_Beyond"}, + {"level": 100, "name": "The Olmic Rune", "url": "https://wynncraft.gamepedia.com/The_Olmic_Rune"}, + {"level": 101, "name": "A Journey Further", "url": "https://wynncraft.gamepedia.com/A_Journey_Further"}, + {"level": 102, "name": "Point of No Return", "url": "https://wynncraft.gamepedia.com/Point_of_No_Return"}, + {"level": 103, "name": "A Hunter's Calling", "url": "https://wynncraft.gamepedia.com/A_Hunter%27s_Calling"}, ] } self.config.register_guild(**default_guild) self.config.register_global(**default_global) + @commands.command() + async def quefaire(self, ctx): + player_name = ctx.author.display_name + req = requests.get("https://api.wynncraft.com/v2/player/%s/stats" % player_name).json() + if not req["data"]: + await ctx.send(":x: impossible de t'aider, je ne te trouve pas sur Wynncraft :(") + return + max_class = None + for cl in req["data"][0]["classes"]: + if not max_class or max_class["professions"]["combat"]["level"] < cl["professions"]["combat"]["level"]: + max_class = cl + + if not max_class: + await ctx.send(":x: impossible de t'aider, je ne te trouve pas ta classe sur Wynncraft :(") + return + + # check for available quests + for quest in await self.config.quests(): + if quest["name"] in max_class["quests"]["list"]: + continue # player has already done this quest + + if quest["level"] < max_class["professions"]["combat"]["level"]: + # quest is doable + await ctx.send(":dizzy: Woosh! Tu peux faire la quĂȘte %s (%s)" % (quest["name"], quest["url"])) + return + + await ctx.send(":x: impossible de t'aider, je ne trouve plus de quĂȘtes pour toi :(") + @commands.command() @checks.admin_or_permissions(manage_guild=True) async def ping_channel(self, ctx, channel: TextChannel): diff --git a/temp.py b/temp.py new file mode 100644 index 0000000..dcd3451 --- /dev/null +++ b/temp.py @@ -0,0 +1,2983 @@ +from bs4 import BeautifulSoup + +a = """ + + +King's Recruit + +1 + +Caravan Driver + +Ragni Outskirts + +Wynn + +Long + +Normal + +6 + +35 + + + + + +Enzan's Brother + +1 + +Enzan + +Ragni + +Wynn + +Short + +Normal + +0 + +80 + + + + + +Poisoning the Pest + +2 + +Farmer Cevalus + +Ragni + +Wynn + +Medium + +Normal + +25 + +145 + + + + + +Cook Assistant + +4 + +The Cook + +Ragni + +Wynn + +Short + +Normal + +28 + +200 + + + + + +Tunnel Trouble + +5 + +Captain Fenor + +Detlas + +Wynn + +Long + +Normal + +55 + +300 + + + + + +The Sewers of Ragni + +5 + +Jenprest + +Decrepit Sewers + +Wynn + +Medium + +Dungeon + +0 + +500 + + + + + +Infested Plants + +6 + +Ope + +Nivla Woods + +Wynn + +Short + +Normal + +5 + +270 + + + + + +Underwater + +8 + +Omango + +Coastal Trail + +Wynn + +Medium + +Normal + +32 + +550 + + + + + +Elemental Exercise + +10 + +Ragon + +Nivla Woods + +Wynn + +Medium + +Normal + +64 + +850 + + + + + +Mushroom Man + +12 + +Yahya + +Nivla Woods + +Wynn + +Medium + +Normal + +128 + +1000 + + + + + +Creeper Infiltration + +14 + +Thomas + +Pigmen's Ravines + +Wynn + +Medium + +Normal + +64 + +1400 + + + + + +Arachnids' Ascent + +14 + +Captain Enduyn + +Infested Pit + +Wynn + +Medium + +Dungeon + +0 + +850 + + + + + +Deja Vu + +14 + +Asher + +Time Valley + +Wynn + +Medium + +Normal + +28 + +1300 + + + + + +Potion Making + +15 + +The Assistant + +Essren's Hut + +Wynn + +Medium + +Normal + +0 + +1600 + + + + + +Maltics Well + +18 + +Rynend + +Maltic + +Wynn + +Short + +Normal + +0 + +2000 + + + + + +Grave Digger + +20 + +Sayleros + +Detlas + +Wynn + +Medium + +Normal + +128 + +3300 + + + + + +Macabre Masquerade Hallowynn 2014 + +21 + +Mask Salesman + +Near Mount Wynn + +Wynn + +Short + +Event + +192 + +10000 + + + + +Studying the Corrupt + +21 + +Pottur + +Lost Sanctuary + +Wynn + +Medium + +Dungeon + +0 + +3600 + + + + + +Pit of the Dead + +23 + +Merloni + +Pit of the Dead + +Wynn + +Short + +Normal + +0 + +2675 + + + + + +Cluck Cluck + +23 + +Nohno + +Rooster Island + +Wynn + +Short + +Normal + +0 + +2800 + + + + + +Dwelling Walls + +24 + +Leucsaa + +Nemract + +Wynn + +Medium + +Normal + +128 + +3650 + + + + +The Dark Descent + +24 + +General Graken + +Underworld Crypt + +Wynn + +Long + +Dungeon + +0 + +2400 + + + + + +Recover the Past + +25 + +Dr. Picard + +Tower of Amnesia + +Wynn + +Long + +Normal + +0 + +6000 + + + + + +Lost Tower + +26 + +Laen + +Nemract + +Wynn + +Short + +Normal + +64 + +6500 + + + + +The Corrupted Village + +26 + +Orikal + +Ternaves + +Wynn + +Long + +Normal + +136 + +4800 + + + + + +The Mercenary + +28 + +Amerigo + +Nemract + +Wynn + +Medium + +Normal + +384 + +10000 + + + + + +Misadventure on the Sea + +28 + +Barman + +Nemract + +Wynn + +Long + +Normal + +0 + ++8500 + + + + + +Craftmas Chaos + +30 + +Tom + +Selchar + +Ocean + +Long + +Event + +640 + +12000 + + + + +Green Gloop + +31 + +Eluzterp + +Slime Cave + +Wynn + +Medium + +Normal + +192 + +9500 + + + + + +A Sandy Scandal + +32 + +Almuj Bank Guard + +Almuj + +Wynn + +Long + +Normal + +128 + +22000 + + + + + +Meaningful Holiday + +33 + +Haily + +Almuj + +Wynn + +Long + +Event + +128 + +15000 + + + + +Kingdom of Sand + +33 + +Lanu + +Sand-Swept Tomb + +Wynn + +Long + +Dungeon + +192 + +10000 + + + + + +Stable Story + +34 + +Enkser + +Ternaves + +Wynn + +Short + +Normal + +0 + +9000 + + + + + +Tribal Aggression + +35 + +Caras + +Mesa + +Wynn + +Medium + +Normal + +0 + +24000 + + + + + +WynnExcavation Site A + +35 + +Excavator Vade + +Desert + +Wynn + +Medium + +Normal + +0 + +15000 + + + + + +Wrath of the Mummy + +36 + +Ormrod + +Almuj + +Wynn + +Medium + +Normal + +128 + +16600 + + + + + +Canyon Condor + +38 + +Svin + +Rymek + +Wynn + +Medium + +Normal + +640 + +21000 + + + + + +Pirate's Trove + +39 + +Damiral + +Llevigar Port + +Gavel + +Medium + +Normal + +168 + +26000 + + + + +Ice Nations + +40 + +Adigard + +Icy Islands + +Wynn + +Medium + +Normal + +256 + +25000 + + + + + +Tower of Ascension + +40 + +Ankou + +Tower of Ascension + +Wynn + +Long + +Special + +32768 + +925000 Max (see Tips) + + + + + +Heart of Llevigar + +41 + +Zenam + +Llevigar + +Gavel + +Long + +Normal + +224 + +24500 + + + + + +Star Thief + +42 + +Agent + +Llevigar Plains + +Gavel + +Medium + +Normal + +256 + +40000 + + + + +Clearing the Camps + +42 + +Captain Kymer + +Llevigar + +Gavel + +Short + +Normal + +300 + +23000 + + + + +Underice + +43 + +Fredris + +Nesaak + +Wynn + +Medium + +Normal + +128 + +34000 + + + + + +Fate of the Fallen + +43 + +Telvu + +Ice Barrows + +Wynn + +Long + +Dungeon + +0 + +20000 + + + + + +Green Skinned Trouble + +44 + +Piere + +Llevigar Plains + +Gavel + +Medium + +Normal + +512 + +38000 + + + + + +Bob's Lost Soul + +45 + +Tarod + +Nesaak + +Wynn + +Long + +Normal + +0 + +55000 + + + + + +Wynn Excavation Site B + +46 + +Excavator Lykron + +Below path towards Haunted Mansion + +Wynn + +Medium + +Normal + +1536 + +50000 + + + + + +Frost Bite + +48 + +Eppo + +Ice Canyon + +Wynn + +Long + +Normal + +640 + +61000 + + + + + +An Iron Heart Part I + +49 + +Duvale + +Bucie + +Gavel + +Medium + +Normal + +128 + +42000 + + + + + +Rise of the Quartron + +49 + +Manager Nasea + +Karoc Quarry + +Gavel + +Long + +Normal + +1408 + +75000 + + + + + +The House of Twain + +49 + +Twendle + +The House of Twain + +Wynn + +Short + +Normal + +4096 + +45000 + + + + +A Grave Mistake + +50 + +Alem + +The House of Twain + +Wynn + +Medium + +Event + +640 + +66666 + + + + +The Maiden Tower + +51 + +Sherk + +Olux Swamp + +Gavel + +Medium + +Normal + +512 + +77500 + + + + +Jungle Fever + +52 + +Worid + +Jungle + +Wynn + +Medium + +Normal + +4096 + +86250 + + + + + +Crop Failure + +52 + +Anast + +Olux + +Gavel + +Medium + +Normal + +640 + +57500 + + + + +Corrupted Betrayal + +52 + +Slykaar + +Undergrowth Ruins + +Wynn + +Long + +Dungeon + +1024 + +87725 + + + + + +Master Piece + +53 + +Caissop + +Olux Swamp + +Gavel + +Medium + +Normal + +0 + +85000 + + + + + +Death Whistle + +53 + +Voer + +Olux Swamp + +Gavel + +Medium + +Normal + +640 + +95000 + + + + +The Shadow of the Beast + +54 + +Dereg + +Olux Swamp + +Gavel + +Long + +Normal + +512 + +140000 + + + + + +The Worm Holes + +54 + +Malo + +Olux Swamp + +Gavel + +Medium + +Normal + +768 + +100000 + + + + + +WynnExcavation Site C + +55 + +Excavator Placardus + +Volcanic Island + +Ocean + +Long + +Normal + +0 + +150000 + + + + + +Zhight Island + +55 + +Zhight + +Zhight Island + +Ocean + +Medium + +Normal + +0 + +95000 + + + + + +The Passage + +57 + +Wirt + +Troms + +Wynn + +Short + +Normal + +256 + +140000 + + + + + +An Iron Heart Part II + +58 + +Detective Hart + +Olux + +Gavel + +Medium + +Normal + +768 / 512 + +160000 + + + + + +The Order of the Grook + +59 + +Seasum + +Mage Island + +Ocean + +Long + +Normal + +0 + +242500 + + + + + +Beneath the Depths + +60 + +Javier + +Pirate Cove + +Ocean + +Medium + +Normal + +1 + +185000 + + + + + +Redbeard's Booty + +61 + +Marston + +Galleon's Graveyard + +Ocean + +Medium + +Dungeon + +0 + +180000 + + + + + +Reclaiming the House + +61 + +Ahmas + +Olux Swamp + +Gavel + +Medium + +Normal + +2048 + +200000 + + + + + +Lost in the Jungle + +62 + +Gracen + +Jungle Village + +Wynn + +Medium + +Normal + +0 + +225000 + + + + + +Taproot + +62 + +Hazel + +Dark Forest + +Gavel + +Long + +Normal + +0 + +275000 + + + + + +Out of My Mind + +63 + +Prentiss + +Troms + +Wynn + +Medium + +Normal + +1024 + +300000 + + + + + +A Fighting Species + +64 + +Darnes + +Pre-Light Forest + +Gavel + +Medium + +Normal + +1856 + +267500 + + + + + +The Headless Hunt + +64 + +Referick + +Dark Forest + +Gavel + +Long + +Normal + +1024 + +355000 + + + + +Lost Royalty + +65 + +Yavlis + +Troms + +Wynn + +Medium + +Normal + +2048 + +290000 + + + + +Lost Soles + +66 + +Ferndor + +Dernel Jungle + +Wynn + +Long + +Normal + +1152 + +352000 + + + + + +From the Mountains + +67 + +Anrod + +Pre-Light Forest + +Gavel + +Long + +Normal + +1024 + +175000 + + + + + +Memory Paranoia + +67 + +Atisun + +Caritat Mansion + +Gavel + +Long + +Normal + +1536 + +375000 + + + + + +Temple of Legends + +68 + +Kelight + +Temple of the Legends + +Wynn + +Long + +Normal + +0 + +550000 + + + + + +Grand Youth + +69 + +Monte + +Dernel Jungle + +Wynn + +Medium + +Normal + +1024 + +425000 + + + + +Lazarus Pit + +69 + +Burtur + +Gelibord + +Gavel + +Long + +Normal + +1024 + +500000 + + + + + +Haven Antiquity + +70 + +Cinfras + +Dead Island + +Ocean + +Medium + +Normal + +1048 + +300000 + + + + +WynnExcavation Site D + +70 + +Royal Advisor Carlos + +Troms + +Wynn + +Long + +Normal + +16384 + +600000 + + + + + +Shattered Minds + +70 + +Likeru + +Efilim + +Gavel + +Long + +Normal + +2560 + +290000 + + + + + +Finding The Light + +71 + +Guardian of The Forest + +Light Forest + +Gavel + +Long + +Normal + +0 + +675000 + + + + + +Forbidden Prison + +72 + +Prison Guard + +Forbidden Prison + +Gavel + +Medium + +Normal + +0 + +550000 + + + + + +Eye of the Storm + +72 + +Arwes + +Lexdale + +Gavel + +Long + +Normal + +6106 + +725000 + + + + + +Hollow Sirene + +73 + +Laloire + +Kander Forest + +Gavel + +Long + +Normal + +1024 + +640000 + + + + +Troubled Tribesmen + +73 + +Ka L'argwit + +Dernel Jungle + +Wynn + +Medium + +Normal + +2048 + +500000 + + + + + +Acquiring Credentials + +74 + +Doan + +Letvus Airbase + +Gavel + +Long + +Normal + +768 + +300000 + + + + + +Reincarnation + +74 + +Batelu + +Bob's Tomb + +Wynn + +Long + +Normal + +0 + +750000 + + + + + +Murder Mystery + +74 + +Captain Lorias + +Cinfras Suburbs + +Gavel + +Medium + +Normal + +3072 + +350000 + + + + + +The Realm of Light + +74 + +Aluxander + +Realm of Light + +Gavel + +Long + +Normal + +4096 + +750000 + + + + + +Flight in Distress + +75 + +Passenger Controllant + +Letvus Airbase + +Gavel + +Long + +Normal + +0 + +750000 + + + + + +The Ultimate Weapon + +75 + +Dodegar Bandysnoot + +Light Forest + +Gavel + +Medium + +Normal + +0 + +450000 + + + + + +The Bigger Picture + +76 + +Psilo + +Mushroom Village + +Gavel + +Medium + +Normal + +1920 + +500000 + + + + + +Aldorei's Secret Part I + +76 + +Elrund + +The entrance of Aldorei Valley + +Gavel + +Long + +Normal + +8192 / 0 + +512500 + + + + + +Purple and Blue + +77 + +Korun + +Cinfras County + +Gavel + +Long + +Normal + +2048 + +500000 + + + + + +The Hunger of Gerts Part 1 + +77 + +Cikal + +Cinfras County + +Gavel + +Long + +Normal + +4864 + +675000 + + + + +Aldorei's Secret Part II + +78 + +Legolus + +Aldorei Town + +Gavel + +Long + +Normal + +10240 / 0 + +450000 + + + + + +The Hunger of Gerts Part 2 + +78 + +Gerten Chief Lobo + +Cinfras County + +Gavel + +Long + +Normal + +0 + +730000 + + + + + +Fallen Delivery + +79 + +Bricot + +Cinfras County + +Gavel + +Long + +Normal + +2048 + +1300000 + + + + + +??? + +80 + +??? + +Gavel + +Gavel + +Medium + +Normal + +6144 + +1400000 + + + + + +From the Bottom + +80 + +Nakoba + +Thanos Bazaar + +Gavel + +Long + +Normal + +4096 + +700000 + + + + + +General's Orders + +80 + +Private Tylas + +Canyon of the Lost + +Gavel + +Long + +Normal + +0 + +1300000 + + + + + +The Qira Hive + +80 + +Yansur + +The Qira Hive + +Gavel + +Long + +Special + +0 + +6250000 Max (see Tips) + + + + + +The Thanos Vaults + +81 + +Dolem + +Thanos + +Gavel + +Medium + +Normal + +4096 + +775000 + + + + +The Belly of the Beast + +82 + +King Burtan + +Thanos/Ozoth's Spire + +Gavel + +Medium + +Normal + +2048 + +1250000 + + + + + +A Marauder's Dues + +83 + +Norsten + +Canyon of the Lost + +Gavel + +Medium + +Normal + +8192 + +1375000 + + + + +The Envoy Part I + +83 + +Olivin + +Selchar, Corkus Province + +Ocean + +Long + +Normal + +9152 + +1750000 + + + + + +The Canyon Guides + +84 + +Gana + +The entrance of Bantisu Air Temple + +Gavel + +Medium + +Normal + +2048 + +1450000 + + + + +The Canary Calls + +85 + +Grenot + +Thesead mines + +Gavel + +Medium + +Normal + +2048 + +1575000 + + + + +The Lost + +85 + +Dejol + +Canyon of the Lost + +Gavel + +Medium + +Normal + +2048 + +1575000 + + + + + +Cowfusion + +86 + +Ranol + +Canyon of the Lost + +Gavel + +Long + +Normal + +4096 + +2300000 + + + + + +Desperate Metal + +86 + +Phinas + +Corkus Shore + +Corkus + +Medium + +Normal + +2048 + +1580000 + + + + + +Beyond the Grave + +87 + +Irlok + +Canyon of the Lost + +Gavel + +Medium + +Normal + +8192 + +2100000 + + + + + +Mixed Feelings + +87 + +Javen + +Corkus Docks + +Corkus + +Long + +Normal + +2048 + +1750000 + + + + +The Hidden City + +88 + +Narder + +Thesead + +Gavel + +Long + +Normal + +4096 + +2700000 + + + + + +The Envoy Part II + +89 + +Maxie + +Corkus City + +Corkus + +Long + +Dungeon + +0 + +3050000 + + + + + +Enter the Dojo + +89 + +Sensei Miyagi + +Sakura Dojo + +Gavel + +Long + +Normal + +0 + +2900000 + + + + + +Fantastic Voyage + +90 + +Relend + +Jofash Docks + +Ocean + +Long + +Normal + +6144 + +3100000 + + + + + +Dwarves and Doguns Part I + +91 + +Lozeg + +Rodoroc + +Gavel + +Long + +Normal + +0 + +3300000 + + + + + +Dwarves and Doguns Part II + +92 + +Dogun Chieftain + +Dogun's Retreat + +Gavel + +Long + +Normal + +0 + +3500000 + + + + + +Dwarves and Doguns Part III + +93 + +Korzim + +Molten Heights + +Gavel + +Long + +Normal + +0 + +4000000 + + + + + +Dwarves and Doguns Part IV + +94 + +Korzim + +Molten Heights + +Gavel + +Long + +Normal + +20480 + +6000000 + + + + + +One Thousand Meters Under + +95 + +Help Wanted + +Ahmsord + +Gavel + +Long + +Normal + +2048 + +5500000 + + + + + +Recipe For Disaster + +96 + +Chef Hamsey + +Ahmsord + +Gavel + +Medium + +Normal + +4096 + +4200000 + + + + + +The Fortuneteller + +97 + +Jill + +Kandon-Beda + +Gavel + +Medium + +Normal + +0 + +3900000 + + + + + +Royal Trials + +98 + +Skyraider Guard + +Sky Islands + +Gavel + +Long + +Normal + +4096 + +7270000 + + + + + +A Journey Beyond + +100 + +Elphaba + +Detlas + +Wynn + +Long + +Normal + +12288 + +6000000 + + + + +The Olmic Rune + +100 + +Abandoned Drill + +Olmic Ruined City + +Silent Expanse + +Medium + +Normal + +0 + +5800000 + + + + + +A Journey Further + +101 + +Aledar + +Lutho + +Silent Expanse + +Long + +Dungeon + +20480 + +7500000 + + + + + +Point of No Return + +102 + +Lutho Citizen + +Lutho + +Silent Expanse + +Long + +Normal + +8192 + +7000000 + + + + +A Hunter's Calling + +103 + +Portal to Dern + + + +Silent Expanse + +Long + +Normal + +0 + +10008000 + + + + +""" + +h = BeautifulSoup(a, 'html.parser') +tr = h.find_all("tr") +for t in tr: + tds = t.find_all("td") + print("{\"level\": %s, \"name\": \"%s\", \"url\": \"https://wynncraft.gamepedia.com%s\"}," % (tds[1].text.replace("\n", ""), tds[0].text.replace("\n", ""), tds[0].a["href"].replace("\n", ""))) \ No newline at end of file