소스 검색

Ajouter 'twitter.py'

master
TheBidouilleur 8 달 전
부모
커밋
4a236f9522
1개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. +24
    -0
      twitter.py

+ 24
- 0
twitter.py 파일 보기

@@ -0,0 +1,24 @@
from config import twitter
import tweepy
auth = tweepy.OAuthHandler(twitter['consumer_key'], twitter['consumer_secret'])



def tweet(message):
# authentication of access token and secret
auth.set_access_token(twitter['access_token'], twitter['access_token_secret'])
api = tweepy.API(auth)
# update the status
api.update_status(status = message)



def main():
print("Nothing to do here")




if __name__ == '__main__':
main()

불러오는 중...
취소
저장