modified git ignore. Added fix to tweet echoer.

This commit is contained in:
Alex Huddleston 2019-03-02 16:52:33 -06:00
parent 03e6c21120
commit 17a6cedc54
2 changed files with 5 additions and 4 deletions

5
.gitignore vendored
View file

@ -1,8 +1,9 @@
.vscode/*
.pyenv/*
__pycache__/*
**/__pycache__/**
.empty/*
keys*
users*
*_tweets*
*.secret
.secret
.pyc

View file

@ -41,7 +41,7 @@ def echo_recent_tweets(screen_name):
# Authorize Mastodon, set api base
# TODO: Modularize this
mastodon = Mastodon(
access_token = '/Users/shadow8t4/.secrets/mastodon_api_access_token.secret',
access_token = '~/.secrets/mastodon_api_access_token.secret',
api_base_url = 'https://masto.werefoxsoftware.com'
)
@ -100,4 +100,4 @@ def echo_recent_tweets(screen_name):
if __name__ == '__main__':
with open('users.txt', 'r') as f:
for l in f:
echo_recent_tweets(l.rstrip())
echo_recent_tweets(l.rstrip())