New words added

TWT and Trust for possible token listing
This commit is contained in:
David Arroyo 2020-08-14 15:30:45 +01:00 committed by GitHub
parent 862dbaa1cf
commit 6d406cc797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ soup = BeautifulSoup(response.text, 'html.parser')
news_list = soup.find_all(class_ = 'css-sbrje5')
# Create a bag of key words for getting matches
key_words = ['list', 'token sale', 'open trading', 'opens trading', 'perpetual', 'FTX']
key_words = ['list', 'token sale', 'open trading', 'opens trading', 'perpetual', 'FTX', 'twt', 'trust']
# Open old database file
path = "/home/pi/db.xlsx"
@ -41,4 +41,4 @@ for news in news_list:
# Export updated news to Excel
cols = ['Text', 'Link']
df = df.append(pd.DataFrame(updated_list, columns=cols), ignore_index = True)
df.to_excel(path, index = False)
df.to_excel(path, index = False)