Widen FFA net

master
trémeur 2 years ago
parent 8fa73621d8
commit 268baec48d

@ -152,7 +152,7 @@ while i < 8:
ffaresoup = BeautifulSoup(str(ffaprompttext), "html.parser") ffaresoup = BeautifulSoup(str(ffaprompttext), "html.parser")
ffatheprompt = ffaresoup.find_all("h4",text=True) ffatheprompt = ffaresoup.find_all("h4",text=True)
for each in ffatheprompt: for each in ffatheprompt:
if "100 words of" in (str(each.get_text())): if "100 words of" in (str(each.get_text())) or "100 Words of" in (str(each.get_text())) or "100 Words Of" in (str(each.get_text())):
if "Re:" not in (str(each.get_text())): if "Re:" not in (str(each.get_text())):
ffacent.append(str(each.get_text())) ffacent.append(str(each.get_text()))
i += 1 i += 1
@ -161,10 +161,11 @@ if ffacent:
ffacentnew = [] ffacentnew = []
for x in ffacent: for x in ffacent:
x = x[13:] x = x[13:]
if x != "":
ffacentnew.append(x) ffacentnew.append(x)
ffaformat = "; ".join(ffacentnew) ffaformat = "; ".join(ffacentnew)
print("fail-fandomanon (any): \033[1m" + ffaformat + "\033[0m (" + ffaprompt + ")\n") print("fail-fandomanon (any): \033[1m" + ffaformat.lower() + "\033[0m (" + ffaprompt + ")\n")
thefile.write("- [[" + ffaprompt + "][fail-fandomanon]] (any): *" + ffaformat + "*\n") thefile.write("- [[" + ffaprompt + "][fail-fandomanon]] (any): *" + ffaformat.lower() + "*\n")
# for this one, prompts are unavailable on tuesdays and wednesdays # for this one, prompts are unavailable on tuesdays and wednesdays

Loading…
Cancel
Save