Pour compter les jours avant un certain événement. C'est super utile.. je crois
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

24 wiersze
462 B

  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()