Fix problem with tweets

how the actual fuck did I miss this?
This commit is contained in:
Robert Miles 2018-10-14 02:38:57 -04:00
parent ea4e00e05b
commit 755862700a
1 changed files with 1 additions and 2 deletions

View File

@ -10,11 +10,10 @@ with open(USERFILE) as f:
tweets = []
for user in USERS:
print(user)
r = requests.get(user[1],{"User-Agent":"twtxt-registry/tildeverse"})
if r.status_code!=200:
continue
t = "\n".split(r.text.rstrip())
t = r.text.rstrip().split("\n")
for tx in t:
tweets.append("\t".join([user[0],user[1],tx]))