twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.72k stars 2.72k forks source link

[QUESTION]Getting Replies from each Tweet #1054

Open QueueStat opened 3 years ago

QueueStat commented 3 years ago

I am using the Twint Crawler on my Docker Container just experimentally. In this context its python:3.7.3, which should be supported. So far I couldn't find a way to get the replies of each tweet for a specific user. Is there currently a way to do this? After some days of trying I couldn't find the right functionality set which showed me those replies in the logs. Can somebody confirm that this is no feature and should maybe be implemented or if there is a way how to extract this information? I mean basically the specific replies other users did under the tweets of a specified user, no the replies the specified user did himself.

davut5 commented 3 years ago

did u find it bro? Getting Replies from each Tweet

patilaum commented 3 years ago

You can use c.Custom_query = "to:{username}" to get all replies to all tweets of specified username. Then you can filter out the conversation_id (given in link of tweet) of which you want all the replies. A bit tedious method but solves the problem. If anyone knows how to mention the "id" or "conversation_id" in custom_query or in twint api, please let me know.

Nesu1313 commented 2 years ago

Hello. Does anybody actually know how to scrape all the tweets of a specific person WITHOUT any replies? It seems that -u username gives you all tweets and replies. Thank you so much for your help.