diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index 17dfb0a..c2db691 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -105,22 +105,47 @@ class WynncraftCog(commands.Cog): } default_global = { "log": True, - "xp_guide": [ - # 1-10 - ["Autour de Ragni (-718,-1580).", - "Faire les métiers (fishing, mining, farming, et woodcutting) jusqu'au niveau 10", - "Around the Identifier, just a little East of Ragni (-551,-1578).", - "Down the road from Ragni where there are two small Zombie ruins, one with level 1-3 mobs, and the other with level 5+ mobs, pick your position! (-547, -1568 and -530,-1624)", - "The Decrepit Sewers northwards of Ragni, it provides quite a hefty sum of experience and Emeralds! (-900,-1880)", - "Inside the Nivla Woods, it is quite full of low level Spiders and Zombies (-200,-1600)."], - # 11-20 - ["Ancient Nemract's level 17 Colosseum (250,-1950).", - "Do your quests.", - "Ancient Nemract has a lot of level 17+ Skeletons, you should grind those for rapid experience.", - "Farm Pigmen underground at (-610,-1580).", - "The level 12 mushroom cave on the Black Road between Ternaves and Detlas."], - # 21-30 - [""] + "grind_spots": [ + {"minlevel": 1, "maxlevel": 10, "location": "-465, -1575"}, + {"minlevel": 11, "maxlevel": 15, "location": "610, -1550"}, + {"minlevel": 16, "maxlevel": 17, "location": "-600, -1200"}, + {"minlevel": 18, "maxlevel": 20, "location": "545, -1300"}, + {"minlevel": 21, "maxlevel": 25, "location": "-30, -1980"}, + {"minlevel": 26, "maxlevel": 30, "location": "640, -1735"}, + {"minlevel": 31, "maxlevel": 35, "location": "1500, -1460"}, + {"minlevel": 36, "maxlevel": 40, "location": "950, -2255"}, + {"minlevel": 41, "maxlevel": 45, "location": "-2120, -4720"}, + {"minlevel": 46, "maxlevel": 50, "location": "-350, -280"}, + {"minlevel": 51, "maxlevel": 55, "location": "-510, -840"}, + {"minlevel": 56, "maxlevel": 60, "location": "-620, -1000"}, + {"minlevel": 61, "maxlevel": 65, "location": "-500, -810"}, + {"minlevel": 66, "maxlevel": 70, "location": "-1100, -5590"}, + {"minlevel": 71, "maxlevel": 75, "location": "-10, -4935"}, + {"minlevel": 76, "maxlevel": 80, "location": "-900, -5600"}, + {"minlevel": 81, "maxlevel": 85, "location": "410, -5085"}, + {"minlevel": 86, "maxlevel": 90, "location": "780, -5370"}, + {"minlevel": 91, "maxlevel": 95, "location": "1500, -5560"}, + {"minlevel": 96, "maxlevel": 100, "location": "1400, -5060"}, + {"minlevel": 101, "maxlevel": 106, "location": "1170, -4385"}, + ], + "dungeons": [ + {"minlevel": 9, "name": "Decrepit Sewers", "url": "https://wynncraft.gamepedia.com/Decrepit_Sewers", "location": "-919, -1883"}, + {"minlevel": 18, "name": "Infested Pit", "url": "https://wynncraft.gamepedia.com/Infested_Pit", "location": "-171, -1820"}, + {"minlevel": 24, "name": "Lost Sanctuary", "url": "https://wynncraft.gamepedia.com/Lost_Sanctuary", "location": "-262, -1045"}, + {"minlevel": 27, "name": "Underworld Crypt", "url": "https://wynncraft.gamepedia.com/Underworld_Crypt", "location": "227, -1950"}, + {"minlevel": 36, "name": "Sand-Swept Tomb", "url": "https://wynncraft.gamepedia.com/Sand-Swept_Tomb", "location": "1409, -1830"}, + {"minlevel": 45, "name": "Ice Barrows", "url": "https://wynncraft.gamepedia.com/Ice_Barrows", "location": "117, -667"}, + {"minlevel": 54, "name": "Undergrowth Ruins", "url": "https://wynncraft.gamepedia.com/Undergrowth_Ruins", "location": "-660, -835"}, + {"minlevel": 63, "name": "Galleon's Graveyard", "url": "https://wynncraft.gamepedia.com/Galleon%27s_Graveyard", "location": "-583, -3468"}, + {"minlevel": 70, "name": "Corrupted Decrepit Sewers", "url": "https://wynncraft.gamepedia.com/Corrupted_Decrepit_Sewers", "location": "-860, -4900"}, + {"minlevel": 74, "name": "Corrupted Infested Pit", "url": "https://wynncraft.gamepedia.com/Corrupted_Infested_Pit", "location": "-860, -4900"}, + {"minlevel": 78, "name": "Corrupted Lost Sanctuary", "url": "https://wynncraft.gamepedia.com/Corrupted_Lost_Sanctuary", "location": "-860, -4900"}, + {"minlevel": 82, "name": "Corrupted Underworld Crypt", "url": "https://wynncraft.gamepedia.com/Corrupted_Underworld_Crypt", "location": "-860, -4900"}, + {"minlevel": 86, "name": "Corrupted Sand-Swept Tomb", "url": "https://wynncraft.gamepedia.com/Corrupted_Sand-Swept_Tomb", "location": "-860, -4900"}, + {"minlevel": 90, "name": "Fallen Factory", "url": "https://wynncraft.gamepedia.com/Fallen_Factory", "location": "-1675, -2600"}, + {"minlevel": 90, "name": "Corrupted Ice Barrows", "url": "https://wynncraft.gamepedia.com/Corrupted_Ice_Barrows", "location": "-860, -4900"}, + {"minlevel": 94, "name": "Corrupted Undergrowth Ruins", "url": "https://wynncraft.gamepedia.com/Corrupted_Undergrowth_Ruins", "location": "-860, -4900"}, + {"minlevel": 101, "name": "Eldritch Outlook", "url": "https://wynncraft.gamepedia.com/Eldritch_Outlook", "location": "-1310, -777"}, ], "quests": [ {"level": 1, "name": "King's Recruit", "url": "https://wynncraft.gamepedia.com/King%27s_Recruit"}, @@ -285,12 +310,33 @@ class WynncraftCog(commands.Cog): if quest["name"] in max_class["quests"]["list"]: continue # player has already done this quest - if quest["level"] < max_class["professions"]["combat"]["level"] and max_class["professions"]["combat"]["level"] - quest["level"] < 10: + if quest["level"] <= max_class["professions"]["combat"]["level"] and max_class["professions"]["combat"]["level"] - quest["level"] < 10: # 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 :(") + # check for dungeons and grind spots + dungeons = await self.config.dungeons() + dungeons.reverse() + + grind_spots = await self.config.grind_spots() + grind_spots.reverse() + + hints = [] + for dungeon in dungeons: + if max_class["professions"]["combat"]["level"] >= dungeon["minlevel"] and max_class["professions"]["combat"]["level"] - dungeon["minlevel"] < 10: + hints.append(":cyclone: Tu peux faire le donjon **%s** aux coordonnées %s (%s)" % (dungeon["name"], dungeon["location"], dungeon["url"])) + break + + for grind_spot in grind_spots: + if grind_spot["minlevel"] <= max_class["professions"]["combat"]["level"] <= grind_spot["maxlevel"]: + hints.append(":star: Tu peux grinder aux coordonnées %s jusqu'au niveau %s" % (grind_spot["location"], grind_spot["maxlevel"])) + break + + if hints: + await ctx.send(":dizzy: Woosh! Voici comment tu peux continuer ton aventure :\n%s" % "\n\t".join(hints)) + else: + await ctx.send(":x: je sais pas comment t'aider :(") @commands.command() @checks.admin_or_permissions(manage_guild=True) diff --git a/temp.py b/temp.py index dcd3451..fd7fa37 100644 --- a/temp.py +++ b/temp.py @@ -3,2976 +3,829 @@ from bs4 import BeautifulSoup a = """ -King's Recruit +DecrepitSewersIcon.png -1 +Decrepit Sewers -Caravan Driver +9 -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 +-919 -Normal +-1883 -768 - -300000 - - - +Sewers of Ragni -Reincarnation - -74 - -Batelu +InfestedPitIcon.png -Bob's Tomb +Infested Pit -Wynn +18 -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 +-171 -750000 +-1820 - - +Arachnids' Ascent -Flight in Distress +LostSanctuaryIcon.png -75 +Lost Sanctuary -Passenger Controllant +24 -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 +-262 -500000 +-1045 - - +Studying the Corrupt -Aldorei's Secret Part I - -76 - -Elrund +UnderworldCryptIcon.png -The entrance of Aldorei Valley +Underworld Crypt -Gavel +27 -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 +227 -675000 +-1950 - +The Dark Descent -Aldorei's Secret Part II +Sand-SweptTombIcon.png -78 +Sand-Swept Tomb -Legolus +36 -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 +1409 -1300000 +-1830 - - +Kingdom of Sand -??? - -80 - -??? +IceBarrowsIcon.png -Gavel +Ice Barrows -Gavel +45 -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 +117 -1300000 +-667 - - +Fate of the Fallen -The Qira Hive +UndergrowthRuinsIcon.png -80 +Undergrowth Ruins -Yansur +54 -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 +-660 -1250000 +-835 - - +Corrupted Betrayal -A Marauder's Dues - -83 - -Norsten +GalleonsGraveyardIcon.png -Canyon of the Lost +Galleon's Graveyard -Gavel +63 -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 +-583 -1450000 +-3468 - +Redbeard's Booty -The Canary Calls +CorruptedDecrepitSewers.png -85 +Corrupted Decrepit Sewers -Grenot +70 -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 +-860 -2300000 +-4900 - - +None -Desperate Metal - -86 - -Phinas +CorruptedInfestedPit.png -Corkus Shore +Corrupted Infested Pit -Corkus +74 -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 +-860 -1750000 +-4900 - +None -The Hidden City +DungeonIcon.png -88 +Corrupted Lost Sanctuary -Narder +78 -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 +-860 -2900000 +-4900 - - +None -Fantastic Voyage - -90 - -Relend +DungeonIcon.png -Jofash Docks +Corrupted Underworld Crypt -Ocean +82 -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 +-860 -3500000 +-4900 - - +None -Dwarves and Doguns Part III +DungeonIcon.png -93 +Corrupted Sand-Swept Tomb -Korzim +86 -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 +-860 -5500000 +-4900 - - +None -Recipe For Disaster - -96 - -Chef Hamsey +Corkusdungeonlogosmall.png -Ahmsord +Fallen Factory -Gavel +90 -Medium +Unknown -Normal +-1675 -4096 +-2600 -4200000 - - - +The Envoy Part II -The Fortuneteller - -97 +DungeonIcon.png -Jill +Corrupted Ice Barrows -Kandon-Beda +90 -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 +-860 -6000000 +-4900 - +None -The Olmic Rune - -100 +DungeonIcon.png -Abandoned Drill +Corrupted Undergrowth Ruins -Olmic Ruined City +94 -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 +-860 -7000000 +-4900 - +None -A Hunter's Calling - -103 - -Portal to Dern - - +EldritchOutlookIcon.png -Silent Expanse +Eldritch Outlook -Long +101 -Normal +Unknown -0 +-1310 -10008000 +-777 - - +A Journey Further """ @@ -2980,4 +833,7 @@ 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 + try: + print("{\"minlevel\": %s, \"name\": \"%s\", \"url\": \"https://wynncraft.gamepedia.com%s\", \"location\": \"%s, %s\"}," % (tds[2].text.replace("\n", ""), tds[1].text.replace("\n", ""), tds[1].a["href"].replace("\n", ""), tds[23].text.replace("\n", ""), tds[24].text.replace("\n", ""))) + except: + continue \ No newline at end of file