From 8fa73621d8b1c8ff39af6f0ea9f384032ba2578a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Wed, 13 Jul 2022 20:36:03 +0100 Subject: [PATCH] tweaks --- promptscrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/promptscrape.py b/promptscrape.py index ac8a4e9..8aec5a6 100644 --- a/promptscrape.py +++ b/promptscrape.py @@ -27,7 +27,7 @@ centpromptsoup = BeautifulSoup(centpromptpage.content, "html.parser") centprompttext = centpromptsoup.find(class_="entry-content") centtheprompt = centprompttext.find("strong") print("100words (100 words): \033[1m" + centtheprompt.text.lower() + "\033[0m (" + centprompt + ")\n") -thefile.write("- [[" + centprompt + "][100 words]] (100 words): *" + centtheprompt.text.lower() + "*\n") +thefile.write("- [[" + centprompt + "][100words]] (100 words): *" + centtheprompt.text.lower() + "*\n") # for this one we need to extract the right entry from a list, which may be an
    but may not be today = int(date.today().strftime("%d")) @@ -162,7 +162,7 @@ if ffacent: for x in ffacent: x = x[13:] ffacentnew.append(x) - ffaformat = ", ".join(ffacentnew) + ffaformat = "; ".join(ffacentnew) print("fail-fandomanon (any): \033[1m" + ffaformat + "\033[0m (" + ffaprompt + ")\n") thefile.write("- [[" + ffaprompt + "][fail-fandomanon]] (any): *" + ffaformat + "*\n")