summaryrefslogtreecommitdiff
path: root/twitterclient.py
AgeCommit message (Collapse)Author
2020-07-11Misc fixes to make pep8 happyMagnus Hagander
Mostly whitespace fixes, but also some bare-exception fixes. Add a setup.cfg that specifies which pep8 settings we normally run with.
2020-07-11Convert tabs to spacesMagnus Hagander
Finally time to clean this repo up
2019-06-28Fix unicode and printing for python 3Magnus Hagander
2019-06-28Fix imports for python 3Magnus Hagander
2019-02-05Update twitter sync code to use requests_oauthlibMagnus Hagander
This simplifies the code a lot, and also adds the functionality to not get stuck in a cron-loop when somebody specifies a non-public twitter account as their twitter account. Instead when that happens just remove the twitter account from the feed (storing it in a new field, oldtwitteraccount, just to be on the safe side in case twitter does evil things to us at some point) Code mostly stolen from the pgeu website code.
2013-06-13Update to use twitter API v1.1Magnus Hagander
2013-06-13Add more info when JSON return is not in JSON formatMagnus Hagander
2012-09-11Turn all twitter handles to lowercase when comparingMagnus Hagander
You can't have different users with twitter handles only differing in case anyway.
2010-08-28Support cursors when listing subscribers to a list.Magnus Hagander
It seems the twitter api always uses this even though it's supposed to be optional.
2010-08-28Make the name of the twitter list configurable.Magnus Hagander
2010-08-28The list_subscribers function belongs in TwitterClientMagnus Hagander
2010-08-28Refactor the posttotwitter.py script to use TwitterClient.Magnus Hagander
2010-08-28Add a script that synchronizes a twitter list with the list of subscribers.Magnus Hagander
In passing, create a TwitterClient base class for use for all communication with twitter.