from twython import Twython

api_key = input('Enter the API key: ')
print('\n')
api_secret = input('Enter the API secret: ')
print('\n')

twitter = Twython(api_key, api_secret)
auth = twitter.get_authentication_tokens()
print(auth['auth_url'])

oauth_verifier = input('Enter your pin: ')
print('\n')

twitter = Twython(api_key,
                  api_secret,
                  auth['oauth_token'],
                  auth['oauth_token_secret'])
final_step = twitter.get_authorized_tokens(oauth_verifier)
print(f"BITCOIN_CONFIRMS_TWITTER_APP_KEY={auth['oauth_token']}")
print(f"BITCOIN_CONFIRMS_TWITTER_APP_SECRET={auth['oauth_token_secret']}")
print(f"BITCOIN_CONFIRMS_TWITTER_OAUTH_TOKEN={final_step['oauth_token']}")
print(f"BITCOIN_CONFIRMS_TWITTER_OAUTH_TOKEN_SECRET={final_step['oauth_token_secret']}")