Update twitter sync code to use requests_oauthlib
authorMagnus Hagander <magnus@hagander.net>
Tue, 5 Feb 2019 09:47:19 +0000 (10:47 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 5 Feb 2019 09:48:23 +0000 (10:48 +0100)
commit63ac91ab4b9941ccad57ed75208f5e2b7bbafef7
treefdcb282c125165f2c8f32b625db251db3bbc2216
parent0ee0643ce76afc803c7d3baa200d3e29abf6de87
Update twitter sync code to use requests_oauthlib

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.
oauth2/__init__.py [deleted file]
schema.sql
setuptwitter.py
synctwitter.py
twitterclient.py