« first day (126 days earlier)      last day (433 days later) » 

01:08
Holding Friday night office hours! The Doctor is In!
01:29
PyData is coming up...
02:02
The Great Pumpkin came!
02:18
yo guys
Need help with instagram API
Anyone available?
hey man
So what have you tried so far?
I am running a instagram contest: something like --- Follow me and use the specified hashtags while posting your picture. Now I have to get all the participants who does that.
What I have done till now is:
Get all my followers feed and then check if hashtags is there or not.
If there is specified hashtags, bam you are the participants.
Couple of problems with this approach: I might have thousands of feed. Getting all those feeds and again searching the tags ..takes a while!
I tried doing this other way around -- But instagram doesn't have an api that let me search tags within my followers.
do they have to follow you?
02:27
Yup
What are the chances that a non-follower uses your tag?
Huge chances.... tags would to way too generic like #london
yup
i am using this python client github.com/Instagram/python-instagram
Any recommendation dude?
I'm looking at it
02:42
oh okay
so you can get all of your followers
hm hm
how many followers?
I can get all of them.
yeah, but like, 100, 1,000, 100,000?
02:50
I have 92 followers right now.
But some user can have 10000.
This is a end-user product.
ok, not bad
are they putting these tags in comments or on photos they post?
photos they post
So this would be relevant:
GET /users/user-id/media/recent
right?
/users/self/feed would be more appropriate.
So like every hour you'd update your list of users, update text from their recent stuff, and there you have it.
It looks like you can only get your own feed. Are you automatically following them back?
02:56
Damn, I should follow them back to have them in my feed.
It won't work.
I have to do this other way around.
Easy on the swears, they'll take my room if it happens too much.
oh sorry man
Let's say the "tag" is not that generic.
you can edit up to 3 minutes after a post, by the way
I should follow them back to have them in my feed.
Can't edit :(
Sorry man!
Sounds like it would work better that way.
03:00
Now, I need to search the media with multiple tags.
Obviously their api don't support this as well
Do you recommend this to run as a celery task every hour?
I think I'd just try to get the full text and parse out the tags myself.
I have to do this globally so that's not an option.
I have to use their tag api to search the tags.
Then if found the tags...check if they follow me or not.
If they follow me they are the participants.
Yeah, you just don't want to use their API too much, so you'll want to rate limit yourself so they don't ban you.
03:02
Exactly.
I am on heroku so I will use heroku cron scheduler to run this every 1 hour.
how many tags?
From 1 to 5 tags.
oh, well sure, do that.
you'll probably want to run every 15 minutes to be safe.
if the tags are super popular.
Yeah
What would be the best way to do the multiple tag searches.
First: api.tag_recent_media(tag_name='hello')
Store the last media somewhere..then search for another tag then compare?
update your list of followers as your first query, then check that against the tag search, add new posts to your collection. I suppose it's like a random drawing?
do they have to do multiple tags to qualify?
03:08
yup..multiple tags
well there you go
:)
you can actually subscribe to the tag and have callback url
but if the tag is too generic, I will get banned I guess
maybe, maybe not, you'll need to see if it's included in the rate limits
Yeah!
Anyway thanks man
Appreciate the help
good luck.
03:21
Thanks
Are you from NZ?
I'm in NYC.
 
10 hours later…
13:08
The Doctor is In!
 
7 hours later…
20:38
I didn't expect a kind of Spanish Inquisition!

« first day (126 days earlier)      last day (433 days later) »