Add more users so there are more than 20 tweets
Also prevent the registry from erroring out on invalid dates (cough cough jan6 cough cough)
This commit is contained in:
parent
f582d044e9
commit
5c3dd53edf
|
@ -20,6 +20,9 @@ for user in USERS:
|
|||
continue
|
||||
t = r.text.rstrip().split("\n")
|
||||
for tx in t:
|
||||
if not re.match(r"\d{4,4}-\d{2,2}-\d{2,2}T\d{2,2}:\d{2,2}:\d{2,2}[+-]\d{2,2}:\d{2,2}",tx.split("\t")[0]):
|
||||
print(tx)
|
||||
continue
|
||||
tweets.append("\t".join([user[0],user[1],tx]))
|
||||
|
||||
tweets.sort(key=lambda x: time.strptime(FIX_TZ.sub(fixtz,x.split("\t")[2]),"%Y-%m-%dT%H:%M:%S%z"))
|
||||
|
|
Reference in New Issue