1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A way to scrape users who retweet certain people on twitter?

Discussion in 'Social Networking Sites' started by facex, Dec 1, 2013.

  1. facex

    facex Regular Member

    Joined:
    Jul 13, 2013
    Messages:
    200
    Likes Received:
    14
    Is there a program to scrape all the users who retweet specific retweets?
     
  2. shesdead

    shesdead Jr. VIP Jr. VIP

    Joined:
    Feb 13, 2011
    Messages:
    1,438
    Likes Received:
    846
    Location:
    Europe
    Home Page:
  3. facex

    facex Regular Member

    Joined:
    Jul 13, 2013
    Messages:
    200
    Likes Received:
    14
    i don't know php i'm simply a leach looking for free/cheap software.
     
  4. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Hey facex did you figure out how to do this?

    Thanks
     
  5. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    This is possible using the api, but it is limited to returning only the 100 latest retweets.
     
    • Thanks Thanks x 1
  6. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    100 that sucks.

    Do you know the query to use?

    Cheers
     
  7. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    https://api.twitter.com/1.1/statuses/retweets/:id.json

    example :
    https://api.twitter.com/1.1/statuses/retweets/21947795900469248.json



     
    • Thanks Thanks x 1
    Last edited: Apr 22, 2014
  8. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Cheers I am getting the below message though when performing that query. Doesn't my twitter user/pass need to be in the query somewhere?{"errors":[{"message":"Bad Authentication data","code":215}]}
     
  9. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    It can't be done by simply using user/pass, full oAuth authentication has to occur to run this endpoint.

    https://dev.twitter.com/docs/auth/obtaining-access-tokens

    its very complicated to do, better off getting a ready made library to do it for you in php or java for example.
     
    • Thanks Thanks x 1
  10. XxUnivaxX

    XxUnivaxX Jr. VIP Jr. VIP

    Joined:
    Jan 15, 2013
    Messages:
    2,061
    Likes Received:
    892
    Gender:
    Male
    Location:
    Basement
  11. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    If this is something that lots of you find useful, I might make a little web based tool to do it for you.
     
    • Thanks Thanks x 1
  12. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Go for it :)

    Would be good.
     
  13. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    Ok, check back in an hour or so, let me see what i can do ;)
     
    • Thanks Thanks x 1
  14. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    No fancy interface or anything, just type straight into your address bar :-

    trendypie.com/scripts/retweets.php?id=21947795900469248

    Obviously, just replace the id= with the id of the tweet you want.
     
    • Thanks Thanks x 1
    Last edited: Apr 22, 2014
  15. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
  16. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    • Thanks Thanks x 1
  17. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Awesome not quite 100 but that will do nicely!

    Is there also a query to grab the 100 people who favorited a tweet? ;)
     
  18. asuran

    asuran Registered Member

    Joined:
    Jun 2, 2012
    Messages:
    98
    Likes Received:
    15
    Thanks, this was really useful! I am not really great at coding api. What would you use this for pokerjak? I am not familiar with twitter marketing.
    I only used tweetadder for awhile to get targeted followers.
     
  19. guvenor

    guvenor Junior Member

    Joined:
    Aug 11, 2009
    Messages:
    165
    Likes Received:
    89
    The reason it may be less than 100 is that it filters out suspended users after the query call so theres nothing we can do about that.

    However I think Ive found a way to return all 11,000 users from that particular tweet but it is very involved and would require a lot of work sorry :(

    Also, i can't see a way to return users who favourited without being the original poster. :(
     
    • Thanks Thanks x 1
  20. pokerjk

    pokerjk Senior Member

    Joined:
    Dec 26, 2010
    Messages:
    1,167
    Likes Received:
    384
    Occupation:
    Online Marketer
    Location:
    England
    Ok you have been a great help. Thanks!