Add shebang, remove unused code
This commit is contained in:
parent
dcbed6f19e
commit
c41f574d9d
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
from settings import *
|
from settings import *
|
||||||
from mastodon import Mastodon
|
from mastodon import Mastodon
|
||||||
from os.path import exists
|
from os.path import exists
|
||||||
|
@ -25,15 +26,6 @@ def main():
|
||||||
api_base_url = api_url
|
api_base_url = api_url
|
||||||
)
|
)
|
||||||
mastodon_user = mastodon_api.account_verify_credentials()
|
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(
|
twitter_api = tweepy.Client(
|
||||||
consumer_key = twitter_auth_keys['consumer_key'],
|
consumer_key = twitter_auth_keys['consumer_key'],
|
||||||
consumer_secret = twitter_auth_keys['consumer_secret'],
|
consumer_secret = twitter_auth_keys['consumer_secret'],
|
||||||
|
|
Loading…
Reference in New Issue