twitter-scraper
twitter-scraper copied to clipboard
Scrape the Twitter Frontend API without authentication.
self.location = html.find(".ProfileHeaderCard-locationText")[0].text UnboundLocalError: local variable 'html' referenced before assignment Error
Uable to get the original page (400 error code), get mobile twitter page indead. 1. Change the User-Agent 2. Fix the selector queries (Missing getting birthday, favorite and is_verified) #166
When I try to: profile = Profile('bgpstream') I get this error: Traceback (most recent call last): File "", line 1, in File "/tools/tmp/twitter-scraper/twitter_scraper/modules/profile.py", line 41, in __init__ self.__parse_profile(page) File "/tools/tmp/twitter-scraper/twitter_scraper/modules/profile.py",...
Is it possible? Fairly new to scraping and having read about Twitter's new updates I'm a bit worried for my project. Data needed would be between the years 2014-2019.
I tried a basic profile selection: `profile = Profile(user_name)` And I got this error: ``` File "/usr/local/lib/python3.6/site-packages/twitter_scraper/modules/profile.py", line 65, in __parse_profile self.location = html.find(".ProfileHeaderCard-locationText")[0].text UnboundLocalError: local variable 'html' referenced before...
There are still invalid escape sequences in tweets.py, that could raise errors in a future Python version: twitter_scraper/modules/tweets.py:161: DeprecationWarning: invalid escape sequence \g tweet["text"] = re.sub(r"(\S)http", "\g http", tweet["text"], 1)...
!pip install twitter_scraper from twitter_scraper import get_tweets for tweet in get_tweets('#arsenal', pages=1): print(tweet['text']) i ran this simple code but it returns the error "Oops! Either "%23arsenal" does not exist or...
``` 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"...
Hi, I'm just learning how to data science. I don't have much experience nor expertise here. I don't even know if this is the right forum. Anyways, I thought of...
Unable to get user tweets and basic information