[P] Trying to modify Tweepy parameters
I’m using Tweepy for the first time and am trying my best to follow tutorials online. I’m trying to extract tweets given a certain hashtag and am wondering if it’s possible to filter further. I am trying to:
1) Save tweets with hashtags at the end only.
2) Have less than 4 hashtags in total.
3) Filter out all images and links.
I’m having trouble finding ways to implement the first two parameters. For #3 I’ve used the following and it seems to work: Print (tweet.created_at, re.sub(r”httpS+”, “”, tweet.full_text)) .
Hope someone with more experience can shed light on it for me. I am trying to recreate a paper and for their Twitter Corpus, they followed those guidelines.