Bug Fix:
1. hr_count soup should be article_soup
This commit is contained in:
parent
68a755a633
commit
b1eba69085
@ -252,7 +252,7 @@ def process_article(title, article_url):
|
||||
# If no author table
|
||||
else:
|
||||
match_type = 0
|
||||
hr_count = len(soup.find_all('hr'))
|
||||
hr_count = len(article_soup.find_all('hr'))
|
||||
if hr_count < 3:
|
||||
pattern = r'<hr>(.*?)<hr>'
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user