Permet de donner un conseil chaque jour.. Pour améliorer notre quotidien, Ou pas.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122
  1. from config import twitter
  2. import tweepy
  3. # auth = tweepy.OAuthHandler(twitter['consumer_key'], twitter['consumer_secret'])
  4. def tweet(message):
  5. # authentication of access token and secret
  6. auth.set_access_token(twitter['access_token'], twitter['access_token_secret'])
  7. api = tweepy.API(auth)
  8. # update the status
  9. api.update_status(status = message)
  10. def main():
  11. print("Nothing to do here")
  12. if __name__ == '__main__':
  13. main()