add 7chan

This commit is contained in:
2019-09-12 19:51:38 -04:00
parent fb2f1419d8
commit d8f63f73cf
5 changed files with 77 additions and 9 deletions

View File

@@ -21,13 +21,9 @@ class FChanHtmlChanHelper(DesuChanHtmlChanHelper):
"omit": int(omit.text.split(" ")[0]) if omit and omit.text else 0
})
next_url = None
for a in soup.find_all("a"):
if a.text == "Next":
next_url = a
break
if next_url:
return threads, urljoin(r.url, next_url.get("href"))
return threads, urljoin(r.url, a.get("href"))
return threads, None
@staticmethod