taspinar / twitterscraper

Scrape Twitter for Tweets
MIT License
2.41k stars 579 forks source link

profiles are not scraped when there are no tweets #319

Open ehsong opened 4 years ago

ehsong commented 4 years ago

I found out that the profiles are not scraped if there are no tweets made by the accounts:

from twitterscraper.query import query_user_info
user_info = query_user_info(user= 'AmericanEagleEq')

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-26-dfb37d2c2df1> in <module>
----> 1 user_info.location

AttributeError: 'NoneType' object has no attribute 'location'

However, when I insert a handle that has a tweet, it returns all results for user_info.

Could this be fixed?