-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.py
More file actions
25 lines (17 loc) · 698 Bytes
/
Copy pathexample.py
File metadata and controls
25 lines (17 loc) · 698 Bytes
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
import tweepy
import time
from accesskeys import *
from twitterbot import TwitterBot
# Twitter restricts number of bot activites by 1000 per day as of now.
number_of_iterations = 50
# Your query to search and like the tweets.
search_query = 'medical%20students'
# The SECRECT_KEY, SECRET_TOKEN, ACCESS_KEY, ACESS_TOKEN
# can be accessed from https://developer.twitter.com/en/apps
bot = TwitterBot(number_of_iterations, SECRECT_KEY,
SECRET_TOKEN, ACCESS_KEY, ACESS_TOKEN)
# Followback all your followers if you are not already following them
bot.follow_followers()
# Like 100 tweets from the provided query
bot.like_tweets(search_query)
bot.follow_from_tweets(search_query)