Skip to content

Tweet something whenever your favorite team goes on the Power Play!

Notifications You must be signed in to change notification settings

holden-james/py_pptweeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

py_pptweeter

Tweet something whenever your favorite team goes on the Power Play!

Requires Twython

pip install Twython

File keys.py must be created in root folder. Define the following variables in keys.py:

consumer_key = 'KEY'
consumer_secret = 'SECRET'
access_token = 'TOKEN'
access_token_secret = 'SECRET'

How to run the script:

python pptweeter.py "NHL TEAM NAME"

NHL Team Name needs to be the full team (e.g. "Vegas Golden Knights").

By default the script will post one of two generic tweets when the team goes on a power play. Alternatively, point to a .txt file containing tweets using the following:

python pptweeter.py "NHL TEAM NAME" -tweets location\of\tweets.txt

Make sure each tweet is on a new line in the .txt.

About

Tweet something whenever your favorite team goes on the Power Play!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages