bisguzar / twitter-scraper

Scrape the Twitter Frontend API without authentication.
MIT License
3.91k stars 600 forks source link

ValueError: Oops! Either "test" does not exist or is private #159

Closed tredmill closed 4 years ago

tredmill commented 4 years ago

Running

from twitter_scraper import get_tweets
tweets = get_tweets('test', pages=1)

#iterate through list to view
for tweet in tweets:
     print(tweet['text'])

Raises Value Error:

  File "C:\Users\Erwin\Anaconda3\lib\site-packages\twitter_scraper\modules\tweets.py", line 170, in get_tweets
    yield from gen_tweets(pages)

  File "C:\Users\Erwin\Anaconda3\lib\site-packages\twitter_scraper\modules\tweets.py", line 41, in gen_tweets
    f'Oops! Either "{query}" does not exist or is private.'

ValueError: Oops! Either "test" does not exist or is private.

Could it be that the script is blocked?

bisguzar commented 4 years ago

I couldn't get it. I see "suspended account" message when I visit https://twitter.com/test . So, looks like everthing working well.

bisguzar commented 4 years ago

I'm closing the issue. If you think something wrong, please re-open.