Pour compter les jours avant un certain événement. C'est super utile.. je crois
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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