From 3fec876617b8b9f886b16dfa3d7fb10a8d59adc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Fri, 5 Aug 2022 20:53:09 +0100 Subject: [PATCH] Account for formatting change --- promptscrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promptscrape.py b/promptscrape.py index 5fbbd48..6a4a6f4 100644 --- a/promptscrape.py +++ b/promptscrape.py @@ -229,7 +229,7 @@ with requests.Session() as s: fffcmadnesspromptpage = s.get(fffcmadnesspromptnew) fffcmadnesspromptsoup = BeautifulSoup(fffcmadnesspromptpage.content, "html.parser") fffcmadnessprompttext = fffcmadnesspromptsoup.find(class_="entry-content") - fffcmadnesstheprompt = fffcmadnessprompttext.find("center") + fffcmadnesstheprompt = fffcmadnessprompttext.find("b") print("fffc madness (at least 2000 words): \033[1m" + fffcmadnesstheprompt.text.lower() + "\033[0m (" + fffcmadnessprompt + ")\n") thefile.write("- [[" + fffcmadnessprompt + "][fffc madness]] (at least 2000 words): *" + fffcmadnesstheprompt.text.lower() + "*\n") fffcregularprompts = fffcsoup.find_all("h3", string=lambda text: "regular challenge" in text.lower())