Giter VIP home page Giter VIP logo

Comments (19)

Mottl avatar Mottl commented on July 30, 2024

Do you know a way to get all the retweets in your browser?

p.s.
Keep in mind that the total number of retweets of a tweet is already stores to csv file.

from getoldtweets3.

elDudarino avatar elDudarino commented on July 30, 2024

Hey there Dmitry, thanks for the reply.

Unfortunately I do not know how how to get all the retweets in the browser (can you share?), actually I am a bit confused by this question.. When I navigate to the user in question on twitter I see both the original tweets they've made and what they have re-tweeted but I am guessing this is not what you mean.

As to your second point, "Keep in mind that the total number of retweets of a tweet is already stores to csv file." - I am not really interested in seeing how many people (retweet count) retweeted the primary users tweets, rather to get the primary user's official tweets and what they have re-tweeted themselves, if that makes sense...

Any help you could offer would be extremely appreciated. Thanks Dmitry! @Mottl

from getoldtweets3.

Mottl avatar Mottl commented on July 30, 2024

Unfortunately I do not know how how to get all the retweets in the browser (can you share?), actually I am a bit confused by this question..

By asking, I mean if you find a way to get those retweets in your browser then it will be possible to get them automatically with some effort in coding and parsing HTTP responses.

When I navigate to the user in question on twitter I see both the original tweets they've made and what they have re-tweeted

The problem is Twitter shows only the first 10 (or so) and this is not what you need, I assume.

from getoldtweets3.

aerophile avatar aerophile commented on July 30, 2024

@elDudarino you can get tweet IDs of tweets from GetOldTweets3 which you can use with the official twitter APIs to get the retweeted tweets. See this API endpoint reference for more details

from getoldtweets3.

Mottl avatar Mottl commented on July 30, 2024

@elDudarino,
you can experiment with the filter:nativeretweets and change the code accordingly.

Here is the example url:
https://twitter.com/search?f=tweets&vertical=default&q=bitcoin%20filter%3Anativeretweets&src=typd

from getoldtweets3.

caradhras36 avatar caradhras36 commented on July 30, 2024

Hi there, thanks for this version - this is a very helpful tool.

I am doing a search by username bound by start and end dates and it works well. But I noticed that re-tweets are not returned, only the specific user's tweets..

Is it possible to make it so that tweets AND retweets are returned? Don't need a full release for this but if you could point me out where in the code I'd make the mods, would be super appreciated. I spent 12+ hours going through it but I didn't find a way to do it. Thanks a MILLION!

Hi @elDudarino,
Did you have any luck with this? I need the same problem.
@Mottl , thanks for this great tool. I would appreciate if you can elaborate a little bit on how to use the nativetweets parameter to get the retweeted messages.

Many thanks.

from getoldtweets3.

Mottl avatar Mottl commented on July 30, 2024

how to use the nativetweets parameter

@caradhras36, just add filter:nativeretweets to the --querysearch as following:

GetOldTweets3 --querysearch "bitcoin filter:nativeretweets" --maxtweets 10

from getoldtweets3.

caradhras36 avatar caradhras36 commented on July 30, 2024

how to use the nativetweets parameter

@caradhras36, just add filter:nativeretweets to the --querysearch as following:

GetOldTweets3 --querysearch "bitcoin filter:nativeretweets" --maxtweets 10

Thank you for the super prompt reply. Let me tell you exactly what my goal is. I want to get all the tweets and retweets from a specific user. Currently, I can get all the tweets, but I can see no retweets.

So, I have two questions:

  1. I want to get the tweets and retweets from a specific user instead of a query search? How can I do this with the filter: parameter?
  2. How can I use the Python classes for the same task?

Many many thanks!

from getoldtweets3.

Mottl avatar Mottl commented on July 30, 2024

I've tried get retweets from BarackObama but it didn't work as expected:
GetOldTweets3 --querysearch "filter:nativeretweets" --username "BarackObama" --maxtweets 10

Returned only 1 tweet. Weird.
You can dig further: https://help.twitter.com/en/using-twitter/advanced-tweetdeck-features

from getoldtweets3.

haidaraM avatar haidaraM commented on July 30, 2024

This seem to work (only the retweets):
GetOldTweets3 --querysearch "BarackObama filter:nativeretweets" --maxtweets 10

from getoldtweets3.

Mottl avatar Mottl commented on July 30, 2024

@haidaraM, it will not work: "BarackObama" in your case is not a username, but a regular text. You can verify that by checking the gathered tweets.

from getoldtweets3.

haidaraM avatar haidaraM commented on July 30, 2024

My bad, you are right. Didn't really pay attention to the results...

from getoldtweets3.

caradhras36 avatar caradhras36 commented on July 30, 2024

I've tried get retweets from BarackObama but it didn't work as expected:
GetOldTweets3 --querysearch "filter:nativeretweets" --username "BarackObama" --maxtweets 10

Returned only 1 tweet. Weird.
You can dig further: https://help.twitter.com/en/using-twitter/advanced-tweetdeck-features

@Mottl Can it happen because out of 10 tweets, only 1 was a retweet?

from getoldtweets3.

caradhras36 avatar caradhras36 commented on July 30, 2024

@Mottl, I solved my problem by using your query above and the code works fine now. Thank you very much.
I have one question though. The retweets have only the original tweet's text, not the text posted by the retweeter.
Is there a way to solve this?
Thanks.

from getoldtweets3.

caradhras36 avatar caradhras36 commented on July 30, 2024

It turns out it didn't work. It only brings the retweets from last 10 days.

from getoldtweets3.

Mottl avatar Mottl commented on July 30, 2024

@caradhras36, You can experiment with Twitter search interface to find a way to get retweets.

from getoldtweets3.

wsy499313317 avatar wsy499313317 commented on July 30, 2024

Hi, firstly thanks for your tool. Recently I'm doing a project that needs to collect last year's tweets about a hot news topic. Thanks for reminding me that " filter:nativeretweets " can get retweets.
But I also got one problem, it seems like that "filter:nativeretweets" cannot work if I set an old date range. Like the following:
setQuerySearch 'bitcoin filter:nativeretweets'
.setSince("2018-01-01")
.setUntil("2018-12-01")
This command cannot get any tweets. Even in advanced tweets search also cannot get any results. But when I set date limitation to the recent. It's work well.
Is "filter" function and get old tweets function cannot work simultaneously?

from getoldtweets3.

giulionf avatar giulionf commented on July 30, 2024

Might be linked to #19 or #3

from getoldtweets3.

gitGirl97 avatar gitGirl97 commented on July 30, 2024

I know this post is old but I still have the same problem. Is there alternative to get old retweets?

from getoldtweets3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.