Twitter API Python script "not authorized" after a while -


i have python 3.3 script calls twitter api function /followers/ids. (i use library: https://pypi.python.org/pypi/twitter)

because of twitter rate limits, scripts takes many days run (15 calls 15 minutes pause,...).

in local tests script works fine when let run on amazon aws small instance, after half day or twitter starts returning "status 401: not authorized". reason this? have no idea cause different behaviour on local machine , on amazon server? don't other errors python.

edit: there no difference between pc , amazon server. noticed happens on both.

the 401: not authorized message means despite efforts stay within rate limits, twitter preventing aws instance access api now. different in behavior due different source ip - local connection vs. , amazon aws ip.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -