diff --git a/prompts.css b/prompts.css index 8a4ae53..6f49399 100644 --- a/prompts.css +++ b/prompts.css @@ -3,7 +3,7 @@ html { color: #808080; background-color: #d5d5ef; /* opacity: 0.8; */ - background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #d5d5ef 28px ), repeating-linear-gradient( #cfcfe755, #cfcfe7 ); + background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #d5d5ef 28px ), repeating-linear-gradient( #cfcfe5, #cfcfe7 ); font-family: "Poppins", sans-serif; } diff --git a/promptscrape.py b/promptscrape.py index bfddbe7..8c155cb 100644 --- a/promptscrape.py +++ b/promptscrape.py @@ -99,7 +99,7 @@ try: dove = "https://dove-drabbles.dreamwidth.org/?style=light" dovepage = requests.get(dove) dovesoup = BeautifulSoup(dovepage.content, "html.parser") - doveprompts = dovesoup.find_all("h3", string=lambda text: "prompt post" in text.lower()) + doveprompts = dovesoup.find_all("h3", string=lambda text: "prompt" in text.lower()) dovesubsoup = BeautifulSoup(str(doveprompts[0]), "html.parser") doveurl = dovesubsoup.find("a") doveprompt = (doveurl["href"]) @@ -128,7 +128,7 @@ try: zonepromptpage = s.get(zonepromptnew) zonepromptsoup = BeautifulSoup(zonepromptpage.content, "html.parser") zoneprompttext = zonepromptsoup.find(class_="entry-content") - zonetheprompt = zoneprompttext.find("strong") + zonetheprompt = zoneprompttext.find("div") print("drabble-zone (100 or 200 words): \033[1m" + zonetheprompt.text.lower() + "\033[0m (" + zoneprompt + ")\n") thefile.write("- [[" + zoneprompt + "][drabble-zone]] (100 or 200 words): *" + zonetheprompt.text.lower() + "*\n") prompts.append({"source":"drabble-zone","type":"comm","notes":"100 or 200 words","prompt":zonetheprompt.text.lower(),"url":zoneprompt})