diff --git a/main.py b/main.py old mode 100644 new mode 100755 index 9b64f08..069b414 --- a/main.py +++ b/main.py @@ -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'],