From b3d2eeb67fa9e5da0e0bb2d67c02055f2b629ec9 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 28 Jan 2020 04:19:26 +0000 Subject: [PATCH] Fix tildes deleted comment parser error --- apiserver/feeds/tildes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apiserver/feeds/tildes.py b/apiserver/feeds/tildes.py index db5c028..1f558b5 100644 --- a/apiserver/feeds/tildes.py +++ b/apiserver/feeds/tildes.py @@ -52,6 +52,8 @@ def comment(i): if i.find('div', class_='is-comment-removed'): return False + if i.find('div', class_='is-comment-deleted'): + return False c = {} lu = i.find('a', class_='link-user') @@ -120,7 +122,7 @@ if __name__ == '__main__': #print(self_post) #li_comment = story('gqx') #print(li_comment) - broken = story('ikn') + broken = story('l11') print(broken) # make sure there's no self-reference