Account for a couple of changes to DW prompt communities
This commit is contained in:
parent
9181590385
commit
ed6f42a2ae
2 changed files with 3 additions and 3 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue