Pour compter les jours avant un certain événement. C'est super utile.. je crois
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 8 месеци
123456789101112131415161718192021222324
  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()