createFriendship 404 ?

10 views
Skip to first unread message

Frédéric Roland

unread,
Sep 13, 2009, 5:35:17 PM9/13/09
to twytho...@googlegroups.com
Hi,
I got a list of twitter user name from DjangoCon wiki.
I'd like to follow everyone on that list.

I have made something like this:

# -*- coding: utf-8 -*-
import twython,time

twitter = twython.setup(username="rolandf", password="My Password")
twitter.createFriendship(id='gdorn',follow=True)

#also tried

twitter.createFriendship(user_id='gdorn',follow=True)

#and also tried

twitter.createFriendship(screen_name='gdorn',follow=True)

All three form give me a 404.

Any idea what I did wrong ?

Regards,
Frédéric

Ryan McGrath

unread,
Sep 13, 2009, 7:37:03 PM9/13/09
to twytho...@googlegroups.com
Hey Frédéric,

Sorry about this! Broke it in one of my earlier commits, was forcing id to a string at all points. This was causing the URL for the API query to be malformed; just committed a fix, let me know if you hit any other problems!

- Ryan

2009/9/13 Frédéric Roland <fro...@gmail.com>

Frédéric Roland

unread,
Sep 14, 2009, 2:49:07 AM9/14/09
to twytho...@googlegroups.com
Hi Ryan,

I gave it an other try and now it almost work.
Out of 72 call to createFriendship I got 27 error 403.
In fact in that api call 403 mean that you tried to follow someone you
were already following and it's not a rate limit.

- Frédéric

Le 14-sept.-09 à 01:37, Ryan McGrath a écrit :

Reply all
Reply to author
Forward
0 new messages