Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract tweets using user handler and the problem with number of retweets and likes? #36

Closed
pratimaupadhyay02 opened this issue Aug 12, 2017 · 8 comments

Comments

@pratimaupadhyay02
Copy link

Sir
I am getting the data but the number of retweets and likes are always shown as zero. I wonder why is it so! And also I wanted to know if there is a way to extract tweets of a specific person using username?

@taspinar
Copy link
Owner

Hi Pratimau,
Most of the tweets have no retweets, hence the value 0. But if a tweet has a retweet the correct number should be shown.
You can search for a specific author by adding from%3A to the query.

@pratimaupadhyay02
Copy link
Author

Sir
Thankyou for the suggestion
I used the command twitterscraper from%3Anarendramodi --limit 100 --output=modiii.json
I got all the tweets of narendramodi but still the number of retweets,likes and replies show zero, which is not the case, as I verified it from the profile. Please suggest some way if the problem is figured out. Thanks

@taspinar
Copy link
Owner

That is strange, because with the same command I get the correct number of retweets, replies and favs.
image

Do you have the lastest version installed? (0.3.0)

@pratimaupadhyay02
Copy link
Author

I didn't have the latest version. I tried upgrading it with the command pip install twitterscraper --upgrade but it seems that it encountered some errors. I am posting the screenshots of the errors here. Also , after that I directly downloaded the zipped folder of 0.3 version from your account and installed it. It installed successfully, but even after that when I tried the command, I still get zero likes,retweets and replies. It's quite strange because when I didn't use from%3A I got the tweets of the general public and in this case I got proper numbers. I tried the date command from the advanced search portion and extracted the tweets of sachin tendulkar, still encountered the same problem of zero likes,retweets and replies. I needed the count of features for an academic project and from all other ways we are getting limited number of tweets and the purpose does not seem to get solved.

@pratimaupadhyay02
Copy link
Author

twitter2
twitterscrapererror

@taspinar
Copy link
Owner

Hi Pratima,
It is strange you should get errors during the upgrade installation (since the requirements did not change).

Maybe you can uninstall all installed versions, and install again. At the moment you probably have the two different versions installed and I can not be sure which one you are using.

@pratimaupadhyay02
Copy link
Author

I wonder if the problem is due the anaconda python installed in my system or so ! I told some of my friends to try on their system and they got the same result :(

@taspinar
Copy link
Owner

taspinar commented Jan 7, 2018

This issue should be fixed with PR#49 (version number 0.3.1)

@taspinar taspinar closed this as completed Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants