Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasrangit/twitter-winner
Twitter Winner
https://github.com/lucasrangit/twitter-winner
Last synced: about 2 months ago
JSON representation
Twitter Winner
- Host: GitHub
- URL: https://github.com/lucasrangit/twitter-winner
- Owner: lucasrangit
- License: mit
- Created: 2014-09-13T00:52:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T20:37:10.000Z (almost 4 years ago)
- Last Synced: 2024-07-11T04:33:53.384Z (2 months ago)
- Language: Python
- Homepage: https://twitter-winner.appspot.com/
- Size: 707 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - lucasrangit/twitter-winner - Twitter Winner (Python)
README
# Twitter Winner
Use your Twitter data to randomly pick a winner. Useful for conducting contests and giveaways.
## Test
1. `~/bin/google_appengine/dev_appserver.py twitter-winner/`
## Deploy
1. Check current version: `gcloud app versions list`
1. Deploy new version to test URL: `gcloud app deploy --no-promote --version X`
1. Test new version.
1. Deploy new version to production URL: `gcloud app deploy --version X`## Secrets
This app requires that you create a `secrets.py` file with the following contents. For security, the file is ignored by git.
```python
# This is a session secret key used by webapp2 framework.
# Get 'a random and long string' from here:
# http://clsc.net/tools/random-string-generator.php
# or execute this from a python shell: import os; os.urandom(64)
SESSION_KEY = ""# Create Twitter application at https://developer.twitter.com/apps
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''TWITTER_CONSUMER_KEY = consumer_key
TWITTER_CONSUMER_SECRET = consumer_secretAUTH_CONFIG = {
'twitter' : (TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET),
}
```