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

@@ -34,8 +34,7 @@ class TgChanHtmlChanHelper(DesuChanHtmlChanHelper):
op_el = soup.find("form", id="delform")
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",