twitterscraper icon indicating copy to clipboard operation
twitterscraper copied to clipboard

Got 0 tweets

Open danmlf1 opened this issue 3 years ago • 30 comments

danmlf1 avatar Sep 10 '20 10:09 danmlf1

I have the same issue. "twitterscraper Trump --limit 1000 --output=tweets.json" gives an empty json file.

miatang13 avatar Sep 11 '20 20:09 miatang13

same issue :(

calebgrisell avatar Sep 12 '20 22:09 calebgrisell

Same issue, getting 0 tweets.

kaushalvivek avatar Sep 14 '20 15:09 kaushalvivek

Yes, I'm having the same problem, getting the following error message when "getting 0 tweets"

raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='twitter.com', port=443): Max retries exceeded with url: /search?f=tweets&vertical=default&q=%23Harami%20since%3A2020-08-22%20until%3A2020-08-24&l=en (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5a3decb510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

Aivi001 avatar Sep 14 '20 18:09 Aivi001

I have the same issue, 0 tweets using query_tweets...

GivenToFlyCoder avatar Sep 16 '20 03:09 GivenToFlyCoder

It doesn't work and return 0 tweet again. please help.

jason1991220 avatar Sep 17 '20 15:09 jason1991220

ooh bad, doesn't work function query_tweets from_user() nor query_tweets(), since yesterday. please help. maybe here is information https://blog.twitter.com/developer/en_us/topics/tips/2020/understanding-the-new-tweet-payload.html

christiangfv avatar Sep 18 '20 23:09 christiangfv

0 Tweets again. Please help.

gautampal1947 avatar Sep 20 '20 12:09 gautampal1947

ooh bad, doesn't work function query_tweets from_user() nor query_tweets(), since yesterday. please help. maybe here is information https://blog.twitter.com/developer/en_us/topics/tips/2020/understanding-the-new-tweet-payload.html

The same error. I agree with you.

zhicheng0501 avatar Sep 21 '20 02:09 zhicheng0501

Easy Twitter enabled Javascript and shut down the backdor this code used In detail: Twitter has been developing since beginning of 2020 a new HTML Frontend with Randomly generated HTML Description Tags. The scoll mechanism to load new tweets was already changed to work with javascript and unique session ID's in january 2020. The URL "https://twitter.com/i/search/ with the &max_position=cursor" has been disabled in twitter.

It was surprising that with the russia collusion and other horse shit they didnt start to work to protect the data.

So as i said in April, the software is probably dead.

tpsvld avatar Sep 23 '20 23:09 tpsvld

ooh bad, doesn't work function query_tweets from_user() nor query_tweets(), since yesterday. please help. maybe here is information https://blog.twitter.com/developer/en_us/topics/tips/2020/understanding-the-new-tweet-payload.html

This doesnt work with the Twitter API not even close.

They changed the HTML Page to avoid non conscented web scrapping.

tpsvld avatar Sep 23 '20 23:09 tpsvld

So is this library just donzo? It's over?

AveryData avatar Oct 04 '20 03:10 AveryData

So is this library just donzo? It's over?

Temporarily. Yeah. Hope it will be back soon

zhicheng0501 avatar Oct 04 '20 04:10 zhicheng0501

Thought I'd use this for my project. Guess that's not gonna happen anytime soon :(

pavstar619 avatar Oct 09 '20 18:10 pavstar619

Same here. Trying the branch of selenium alternatively.

edmangog avatar Oct 12 '20 15:10 edmangog

Is there another good similar library that people are using?

sudz4 avatar Oct 14 '20 22:10 sudz4

same to me

adamzvx avatar Oct 22 '20 02:10 adamzvx

same issue ,twitter disgust,

Simon-Smith-NKU avatar Nov 03 '20 15:11 Simon-Smith-NKU

Even I got 0 Tweets count. I posted a new tweet and still got Zero tweets. I spent a lot of time understanding the workflow and got 0 !

qarampage avatar Nov 06 '20 15:11 qarampage

just use tweepy instead

import tweepy as tw #Importing twitter access keys from a separate file in this project folder: from credentials import * #Using keys as a variable

#Setting up Twitter API connection: def twitter_creds(): """ Connects to Twitter API. For confidentiality purposes the access keys are in a separate file in the project folder. Credential file is saved as credentials.py.

"""

#Authenticate credentials using keys:
auth = tw.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) #tells twitter I am valid user
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)

#Connect with API and authenticate:
api = tw.API(auth) #speaks to twitter
return api

#Finding some AI Tweets

search_words = "artificial+intelligence" date_since = "2020-1-1" #2020-3-12 outputted 669 tweets #For fun let's see if we can get a little closer to 1000 #2020-3-12 gives me 673 tweets. 4 tweets in 3 months??? I don't know... #2020-1-1 gets us to the limit set below of 1000 tweets = tw.Cursor(api.search, q=search_words, lang="en", since=date_since).items(1000)

for tweet in tweets: print(tweet.text)

sudz4 avatar Nov 06 '20 20:11 sudz4

As twitterscraper is (temporarily) dead, I thought I'd share my favorite alternative scraper. @mattwsutherland your solution requires an API-key (which is super hard to get) so unfortunately it's useless to most people here.

Simply go for TweetScraper - for me its working perfectly. Also see this medium article providing a useful pandas snippet to set up a nicely formatted dataframe.

Installation for Ubuntu is straightforward as described. For Windows just do the following:

git clone https://github.com/jonbakerfish/TweetScraper.git
conda create -n tweetscraper python=3.7.7 -y
conda activate tweetscraper
conda install -y -c conda-forge scrapy ipython ipdb
pip install scrapy-selenium

Change to directory "TweetScraper" and test with

scrapy crawl TweetScraper -a query="foo,#bar"

do-me avatar Nov 10 '20 20:11 do-me

Thanks I will definitely 👍 try that

On Wed, Nov 11, 2020, 1:40 AM do-me [email protected] wrote:

As twitterscraper is (temporarily) dead, I thought I'd share my favorite alternative scraper. @mattwsutherland https://github.com/mattwsutherland your solution requires an API-key (which is super hard to get) so unfortunately it's useless to most people here.

Simply go for TweetScraper https://github.com/jonbakerfish/TweetScraper

Installation for Ubuntu is straightforward as described. For Windows just do the following:

git clone https://github.com/jonbakerfish/TweetScraper.git conda create -n tweetscraper python=3.7.7 -y conda activate tweetscraper conda install -y -c conda-forge scrapy ipython ipdb pip install scrapy-selenium

Change to directory "TweetScraper" and test with

scrapy crawl TweetScraper -a query="foo,#bar"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taspinar/twitterscraper/issues/344#issuecomment-724939061, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4DDQIMFDUXIU7TEKI5O73SPGM4HANCNFSM4REYB7DQ .

qarampage avatar Nov 11 '20 17:11 qarampage

still, the issue is continuing, Anyone finds a solution or another work around?

lavarthan avatar Nov 26 '20 06:11 lavarthan

I think this scrapper is dead and may not be able untill somebody make changes.

Guolin1996 avatar Jan 15 '21 21:01 Guolin1996

@Guolin1996 Yes unfortunately ...

Altimis avatar Jan 15 '21 22:01 Altimis

I have the same issue. "twitterscraper Trump --limit 1000 --output=tweets.json" gives an empty json file.

where to set Author API in this code?

amitchandnia avatar Jan 27 '21 06:01 amitchandnia

Commenting to watch, same issue here

shawnngtq avatar Mar 28 '21 13:03 shawnngtq

I guess it's still dead. Just tried, got 0 tweets.

woaying avatar Jul 21 '21 14:07 woaying

Still 0 tweets

Hat52 avatar Jun 14 '23 09:06 Hat52

sad. still 0 tweets. is this related to Elon Musk?

raygorous avatar Aug 09 '23 23:08 raygorous