taspinar / twitterscraper

Scrape Twitter for Tweets
MIT License
2.4k stars 581 forks source link

TypeError: not all arguments converted during string formatting #199

Closed chamilton-turner closed 5 years ago

chamilton-turner commented 5 years ago

I just started working with this tool, but I continue getting this Logging error:

TypeError: not all arguments converted during string formatting

I am running with the standard CLI synatx provided in the readme:

twitterscraper angry -l 1000 -o angry.json

I get this error whether I pass the query with quotes or not. Am I missing something here?

Also, is it possible to scrape specific hashtags? Thank you!

cosmicespresso commented 5 years ago

Same here.

mchbmn commented 5 years ago

likewise, when used in CLI and within Jupyter

luchongk commented 5 years ago

I get this when using it from the API (query_tweets) too

mchbmn commented 5 years ago

As a temporary solve I have reverted to 0.9.3, which works:

pip install twitterscraper==0.9.3

Want that new retweet functionality though

liaoming999 commented 5 years ago

same here

Captain-F commented 5 years ago

Same here.

michael-wise commented 5 years ago

Haven't used this lib in a while. Just hopped on it to try something, and had this error with fresh install from pip3 from python query_tweets method.

tweets = twitterscraper.query.query_tweets(query="@jwucharlotte", begindate = datetime.date(2019,7,23), enddate = datetime.date(2019,7,24))

I verified pip install twitterscraper==1.1.0 is the latest version available in pip that avoids this issue.

taspinar commented 5 years ago

Like @yvelkram noticed this was due to a typo and it should be fixed in the latest version of twitterscraper==1.3.0