Pour compter les jours avant un certain événement. C'est super utile.. je crois
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

24 řádky
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()