Commit bc077917 by Michelle Awh

s

parent c4472f13
Showing with 0 additions and 2 deletions
......@@ -373,10 +373,8 @@ class Article:
lst = []
span = soup.find_all('span', class_='sp_text_data')
for x in span:
print(x)
if x.text not in lst:
lst.append(x.text)
print(lst)
try:
lst[-1] = int(''.join(lst[-1].split(',')))
except IndexError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment