-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.py
57 lines (41 loc) · 899 Bytes
/
search.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import urllib
import tweepy
import json
import twitter_auth
#api = twitter_auth.api
twitter = twitter_auth.authorize("sudharsanmit")
def limit_handled(cursor):
while True:
try:
yield cursor.next()
except tweepy.RateLimitError:
time.sleep(15 * 60)
except other:
raise
# Like method
def like():
print ("TODO");
# Retweet method
def retweet():
print ("TODO");
# Tweet method
def tweet():
print ("tweet")
# Follow method
def follow():
print ("TODO")
# Search method
def search():
print ("TODO");
# Get followers
def getFollowers():
print ("TODO");
# Master's command
def masterCmd():
print ("TODO");
#api.update_status(status="Thank you for the info.@<tweet.screen_name>", in_reply_to_status_id=tweet.id)
# Main method
def main():
print ("Hi");
if __name__ == '__main__':
main()