Skip to content

Commit 14c6e05

Browse files
update
1 parent 9e55458 commit 14c6e05

File tree

9 files changed

+1769
-107
lines changed

9 files changed

+1769
-107
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import twitter
2+
import tweepy
3+
from tweepy import OAuthHandler
4+
consumer_key = "hEDGEdp4p2Tp8U6h5vpOGOpm9"
5+
consumer_secret = "4C8P1YeOtsjebf6dYyTnRCWae3GWWoF9n6VLnQOKTEorlK3KbT"
6+
access_token = "846992744690208768-QQKUada7IjhguoQyjrARQ99nCkHVMop"
7+
access_token_secret = "5zfmqKV2eLPO2SU0XoW3DKtOUqwmvpPB1r7KoQ48OQnq8"
8+
authorization = twitter.OAuth(access_token, access_token_secret, consumer_key, consumer_secret)
9+
t = twitter.Twitter(auth=authorization)
10+
11+
auth = OAuthHandler(consumer_key,consumer_secret)
12+
auth.set_access_token(access_token,access_token_secret)
13+
14+
api = tweepy.API(auth, proxy="socks5://127.0.0.1:1080")
15+
print("api")
16+
17+
for status in tweepy.Cursor(api.home_timeline).items(2):
18+
print (status.text)

0 commit comments

Comments
 (0)