Weitere ähnliche Inhalte
Ähnlich wie Python twitterとtkinterのことはじめ (20)
Python twitterとtkinterのことはじめ
- 2. お前、誰よ? Name : Yukitaka Uchikoshi job : 結婚式場で社内 SE id: uchikoshi22 level : Python 初心者クラス
- 29. #!/usr/bin/env python #-*- coding: utf-8 -*- from Tkinter import * import twitter import tweetauth user = tweetauth.u_id t_dict = tweetauth.auth_dict def get_friends_timeline(user, max_timeline): api = twitter.Api( consumer_key = t_dict['consumer_key'], consumer_secret = t_dict['consumer_secret'], access_token_key = t_dict['access_token_key'], access_token_secret = t_dict['access_token_secret'], ) friends_timelines = api.GetFriendsTimeline(user, count=) return friends_timelines f_tls = get_friends_timeline(user, max_timeline) for tl in f_tls: tweet = tl.user.screen_name + " => " + tl.text Label(root, text=tweet).pack() root.mainloop()