x0rz / tweets_analyzer

Tweets metadata scraper & activity analyzer
GNU General Public License v3.0
2.94k stars 454 forks source link

Do not try to retrieve tweets if there is no tweet to retrieve. #53

Open letompouce opened 5 years ago

letompouce commented 5 years ago

It may sound stupid to try to analyze tweets from an user who never tweeted, still it should fail nicely.

$ tweets_analyzer -n <SomeSilentUser>
[+] Getting @SomeSilentUser account data...
[+] lang           : fr
[+] geo_enabled    : False
[+] time_zone      : None
[+] utc_offset     : None
[!] Can't get specific timezone for this user
[+] statuses_count : 0
[+] Retrieving last 0 tweets...
0tw [00:00, ?tw/s]
[!] Error: 'int' object has no attribute 'days'