Error when getFollowersStatus() only with ID #15

Closed
opened 2010-08-14 19:33:35 -07:00 by ebertti · 2 comments
ebertti commented 2010-08-14 19:33:35 -07:00 (Migrated from github.com)

I get this error:

>>> flw = twitter.getFollowersStatus(id="ebertti", page="0")
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
flw = twitter.getFollowersStatus(id="ebertti", page="0")
File "C:\Python26\lib\site-packages\twython\core.py", line 580, in getFollowersStatus
raise TwythonError("getFollowersStatus() failed with a %s error code." % `e.code`, e.code)
TwythonError: 'getFollowersStatus() failed with a 403 error code.'

in line 574 of core.py need to put a '?' if you ar using only de ID to get a user followers...

if apiURL.find("?") == -1 :
     apiURL += "?"
else
     apiURL += "&"

if page is not None:
    return simplejson.load(self.opener.open(apiURL + "page=%s" % page))
else:
    return simplejson.load(self.opener.open(apiURL + "cursor=%s" % cursor))

I think it will work

I get this error: ``` >>> flw = twitter.getFollowersStatus(id="ebertti", page="0") Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> flw = twitter.getFollowersStatus(id="ebertti", page="0") File "C:\Python26\lib\site-packages\twython\core.py", line 580, in getFollowersStatus raise TwythonError("getFollowersStatus() failed with a %s error code." % `e.code`, e.code) TwythonError: 'getFollowersStatus() failed with a 403 error code.' ``` in line 574 of core.py need to put a '?' if you ar using only de ID to get a user followers... ``` if apiURL.find("?") == -1 : apiURL += "?" else apiURL += "&" if page is not None: return simplejson.load(self.opener.open(apiURL + "page=%s" % page)) else: return simplejson.load(self.opener.open(apiURL + "cursor=%s" % cursor)) ``` I think it will work
ryanmcgrath commented 2010-08-16 02:33:37 -07:00 (Migrated from github.com)

Fixed. Let me know if you come across anything else like this.

At some point I'll find time to merge in the bigger changes for streaming/OAuth, but my life is pretty hectic right now. :(

Fixed. Let me know if you come across anything else like this. At some point I'll find time to merge in the bigger changes for streaming/OAuth, but my life is pretty hectic right now. :(
ryanmcgrath commented 2010-08-16 02:34:55 -07:00 (Migrated from github.com)

Should be fixed. Let me know if you see anything else like this.

At some point I'll find time to roll in my changes for Streaming/OAuth, but life has been pretty hectic lately. :(

Should be fixed. Let me know if you see anything else like this. At some point I'll find time to roll in my changes for Streaming/OAuth, but life has been pretty hectic lately. :(
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#15
No description provided.