Add shebang, remove unused code

This commit is contained in:
robin 2022-05-26 11:27:30 +02:00
parent dcbed6f19e
commit c41f574d9d
1 changed files with 1 additions and 9 deletions

10
main.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
from settings import *
from mastodon import Mastodon
from os.path import exists
@ -25,15 +26,6 @@ def main():
api_base_url = api_url
)
mastodon_user = mastodon_api.account_verify_credentials()
# auth = tweepy.OAuthHandler(
# twitter_auth_keys['consumer_key'],
# twitter_auth_keys['consumer_secret']
# )
# auth.set_access_token(
# twitter_auth_keys['access_token'],
# twitter_auth_keys['access_token_secret']
# )
# twitter_api = tweepy.API(auth)
twitter_api = tweepy.Client(
consumer_key = twitter_auth_keys['consumer_key'],
consumer_secret = twitter_auth_keys['consumer_secret'],