Remove extra logging

This commit is contained in:
2020-07-07 20:55:13 +00:00
parent 0bd9f05250
commit 9a449bf3ca
2 changed files with 0 additions and 15 deletions

View File

@@ -73,14 +73,10 @@ def story(ref):
html = api(API_ITEM(ref))
if not html: return False
logging.info('Got Tildes html')
soup = BeautifulSoup(html, features='html.parser')
a = soup.find('article', class_='topic-full')
if a is None: return False
logging.info('Got article tag')
h = a.find('header')
lu = h.find('a', class_='link-user')
@@ -106,8 +102,6 @@ def story(ref):
ch = a.find('header', class_='topic-comments-header')
s['num_comments'] = int(ch.h2.string.split(' ')[0]) if ch else 0
logging.info('Parsed html data')
if s['score'] < 8 and s['num_comments'] < 6:
return False