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

Extracting Tweets with replies #104

Closed
TharushaIQZ opened this issue Jan 2, 2024 · 5 comments
Closed

Extracting Tweets with replies #104

TharushaIQZ opened this issue Jan 2, 2024 · 5 comments

Comments

@TharushaIQZ
Copy link

Existing user_tweets_and_replies function extracts tweets and replies posted by a particular given user. However I want to extract all the replies of a particular tweet in my twitter profile. Is it possible using twscrape?

@vladkens
Copy link
Owner

vladkens commented Jan 4, 2024

Hi, @TharushaIQZ. This cannot be done in twscrape directly via a special handler, but can be done via search:

async for tw in api.search("conversation_id:1637235385070678017 filter:replies"):
    print(tw)

or with CLI

twscrape search "conversation_id:1637235385070678017 filter:replies"

conversation_id is your tweet id. Not sure that filter:replies required.

Note for me: twitter can load replies directly by TweetDetail operation with pagination (example)

@fernandoamorim30
Copy link

@TharushaIQZ, you was resolved your question? Im have a similar issue.... Im need get all replies from one tweet id in CSV or JSON or whatever....

@vladkens vladkens added this to the v0.11 milestone Feb 10, 2024
vladkens added a commit that referenced this issue Feb 10, 2024
@heyeanne34
Copy link

hello owner has this been added? pls add huhuhu , i want to get all comments and their nested replies in a tweet.. also do u have discord or any socmed where i can recommend more suggestions?

@vladkens
Copy link
Owner

Should be added in v0.11. If something wrong open new issue please.

@heyeanne34
Copy link

Should be added in v0.11. If something wrong open new issue please.

can u pls teach to use huhuh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants