dmarx / twitterMonitor

Simple twitter event detection tool
1 stars 0 forks source link

add twitter login #21

Open dmarx opened 8 years ago

dmarx commented 8 years ago

instead of tying app to my personal twitter account, let the user login with their own. Separate scraper instances per-user w/o having to worry about rate limiting, and different users could personalize which terms they are tracking (see issue #22 ). Should transition to tweepy beforehand (issue #1 ) and so we don't need to learn twython's authorization and then rebuild with tweepy (i.e. only do this once).

dmarx commented 8 years ago

Looks like this will likely be non-trivial. Can't do it with tweepy, or really any reference to the twitter API. http://stackoverflow.com/a/26596791/819544

There must be some way to login via twitter and access the logged-in session in the app.

dmarx commented 8 years ago
dmarx commented 8 years ago

https://github.com/search?utf8=%E2%9C%93&q=flask+tweepy+get_authorization_url&type=Code&ref=searchresults

dmarx commented 8 years ago

For now, instead of using the fancier "callback URL" flow, just test if the session is logged in and if not, present the user with a login URL which opens in a new window and a form to enter the verification code.