for tweet in get_tweets("$AMD", pages=1):
print(tweet['text'])
retruns error
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/twitter_scraper/modules/tweets.py in gen_tweets(pages)
36 html = HTML(
---> 37 html=r.json()["items_html"], url="bunk", default_encoding="utf-8"
38 )
KeyError: 'items_html'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
2 frames
/usr/local/lib/python3.6/dist-packages/twitter_scraper/modules/tweets.py in gen_tweets(pages)
39 except KeyError:
40 raise ValueError(
---> 41 f'Oops! Either "{query}" does not exist or is private.'
42 )
43 except ParserError:
ValueError: Oops! Either "$AMD" does not exist or is private.
retruns error