트위터 연동을 위한
tweepy 모듈 설치
pip install tweepy
아래 함수 참고하여 msg에 내용 입력 후 함수 실행
def sendTwit(msg):
consumer_key="??????????????"
consumer_secret="?????????????"
access_token="??????"
access_token_secret="??????"
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
api.update_status(msg)
'Python' 카테고리의 다른 글
python 활용 instragram api 예제 코드 (0) | 2015.11.15 |
---|---|
python과 mysql 또는 maraidb 연동 시 설치 방법 (0) | 2015.10.11 |
아마존 EC2 서버 Pyhton 2.7로 업그레이드 (0) | 2015.05.03 |
pyhton easyInstall, pip, ClientCookie 설치 (0) | 2015.05.03 |
python 한글 입력 (0) | 2015.05.03 |