Blog

Learn About Our Meetup

5000+ Members

MEETUPS

LEARN, CONNECT, SHARE

Join our meetup, learn, connect, share, and get to know your Toronto AI community. 

JOB POSTINGS

INDEED POSTINGS

Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.

CONTACT

CONNECT WITH US

Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[P] Trying to modify Tweepy parameters

Hey all,

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.

submitted by /u/MrMegaGamerz
[link] [comments]

Next Meetup

 

Days
:
Hours
:
Minutes
:
Seconds

 

Plug yourself into AI and don't miss a beat

 


Toronto AI is a social and collaborative hub to unite AI innovators of Toronto and surrounding areas. We explore AI technologies in digital art and music, healthcare, marketing, fintech, vr, robotics and more. Toronto AI was founded by Dave MacDonald and Patrick O'Mara.