Open Nesu1313 opened 2 years ago
Are you using jupyter notebook? Is twint working ? I return with zero result
Hey BashairA. Thank you for your reply :). I am not using Jupyter Notebook. I have not used Jupiter before. Do you have any ideas how I could filter out the replies ? When scraping all tweets of a username like Elon Musk, Twint gives me all of his tweets but it also scrapes all the replies from Elon Musk to other people, which I am trying to leave out.
Twint itself is working just fine. I used it with python.
Hey BashairA. Thank you for your reply :). I am not using Jupyter Notebook. I have not used Jupiter before. Do you have any ideas how I could filter out the replies ? When scraping all tweets of a username like Elon Musk, Twint gives me all of his tweets but it also scrapes all the replies from Elon Musk to other people, which I am trying to leave out.
Twint itself is working just fine. I used it with python.
You could add a column name 'reply_to'. If the tweet is 'reply', it will be an empty list '[]'. Otherwise, it will be like '[{screen_name:'XXX','name':'XXX','id':ddddddd}]'. So based on this, you can easily filter out 'replies'.
I am trying to pull Elon Musk's Tweets without any replies and without any retweets, just the Tweets.
I have the latest python version and updated Twint working with MacOS
I used the following commands but this gives me all the tweets from Elon Musk and all the replies which I am trying to leave out.
import twint
c = twint.Config()
c.Username = "elonmusk" c.Store_csv = True c.Limit = 99999999 c.Output = "./elon_musk_tweets.csv" c.Hide_output = True
twint.run.Search(c)
I hope someone could help me out. Thank you very much