add chanon

This commit is contained in:
2019-09-12 20:40:31 -04:00
parent d8f63f73cf
commit cfd2f3bdce
4 changed files with 78 additions and 3 deletions

View File

@@ -58,8 +58,7 @@ class DesuChanHtmlChanHelper(ChanHelper):
op_el = soup.find("div", id=lambda tid: tid and tid[1:].isdigit())
for post_el in op_el.find_all("table", recursive=False):
label = post_el.find("label")
*_, time = label.children
*_, time = post_el.find("label").children
yield {
"id": int(post_el.find("td", attrs={"class", "reply"}).get("id")[5:]),
"type": "post",