- 280.html - short and long tweets
- 280-short.html - only short tweets
- 280-long.html - only long tweets
Searches Twitter for "280" and outputs one short tweet of 140 characters or less, then long tweet one over 140, then repeats until 56,000 words (280 * 200). Or can only output short tweets. Or can only output long tweets.
Get Twitter app keys and secrets and put them in 280.yaml:
consumer_key: TODO_ENTER_YOURS
consumer_secret: TODO_ENTER_YOURS
access_token: TODO_ENTER_YOURS
access_token_secret: TODO_ENTER_YOURS
Then run:
pip install pyyaml twitter
# then
python 280.py > 280.html
# or
python 280.py --toggle short > 280-short.html
# or
python 280.py --toggle long > 280-long.html
Works at least with macOS High Sierra with Python 3.6.3. Should work with Python 2.7.