Remove extra logging
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user