skip to Main Content

Hi I’m new to scraping data from twitter and I’ve been working on a project to collect tweets and their replies. I scraped the tweets using twitter API , but I couldn’t scrape their replies. Any suggestions ?

3

Answers


  1. Scraping is not using API. API is a comfortable method to get data while scraping is doing it manually. If you want to get replies, but the API doesn’t provide them, you can use selenium. It is well-known library used for scraping data.

    Login or Signup to reply.
  2. Twitter API does not have an end-point to get replies to a tweet for free users, but there are some ways to achieve what you want, although there may be some limits on how many tweets you can get.

    Check-out tweepy library, I think you could use the search method as is explained in this question(How to get the replies for a given tweet with tweepy and python?
    )
    . To better understand how to use the tweet object, you should definitely check the docs out.

    Login or Signup to reply.
  3. You can achieve this by:
    You want to get replies of @barackobama and Tweet Id is 1234 just example.
    Search tweets having @barackobama is tweet text. then make filter on InrplytweetId=1234
    by this method you can get replies of this tweet.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search