1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-21 20:44:18 +00:00

Sostituite le stringhe con le consumer key e gli acces token con delle variabili d'ambiente

This commit is contained in:
g.minoccari 2021-05-28 16:02:03 +02:00
parent 4f0b9a77b6
commit 3ea6c7d129

View file

@ -1,11 +1,12 @@
import tweepy as tw
import os
def authenticate():
c_k = "GEhtSyP9e98mzFeiOCSW0lvQX"
c_s = "438cmYrl5xqaX2W7I2Bf5A9nF1pN5VtM9f77WYQnAXg1BwKJ27"
a_t = "1380217745732689921-IW3U1JlxhnQeGBUrnHZ2nxbxhksXUZ"
a_t_s = "EUoYNoj72rb2q00tUIW8eTcLJAhUAYPstZlV78W9cPpEJ"
c_k = os.getenv('C_K')
c_s = os.getenv('C_S')
a_t = os.getenv('A_T')
a_t_s = os.getenv('A_T_S')
auth = tw.OAuthHandler(c_k, c_s)
auth.set_access_token(a_t, a_t_s)