An Instagram bot that only likes ❤️ because fake comments and follow/unfollows are annoying 👎
Install Selenium with pip3:
pip3 install selenium
Then, download the Chrome driver. Next, clone this repository:
git clone https://github.com/tobyjamesthomas/instagram-bot.git
cd instagram-bot
Note: As of January 3, 2019, weather-api is now retired and needs to be replaced.
instagram_bot_weather.py uses Yahoo's weather API:
pip3 install weather-api
Lookup your city's WOEID here. (Change location to your city, and WOEID should be in URL)
from instagram_bot import InstagramBot
ig = InstagramBot()
Like a post given the post's url:
url = 'https://www.instagram.com/p/Bjhav3XFUyd/'
ig.like(url)
Like a user's three most recent posts given their username:
username = 'tobytrek'
ig.like_user(username)
Like the five most recent posts of a given hashtag, then like each post's user (see above):
hashtag = 'theofficememes'
ig.like_hashtag(hashtag)
# Get your current bio
current_bio = ig.get_bio()
# Set your bio
new_bio = "Why waste time say lot word when few word do trick?"
ig.set_bio(new_bio)
Note: You can change the number of posts / users / hastags liked. See instagram_bot_example.py for full usage.
- Yahoo's weather-api is currently retired as of January 3, 2019.
Feel free to fork this project and add to it 😊
- Fork this project
- Create a branch for your feature (git checkout -b my-feature)
- Add and commit your changes (git commit -am 'My awesome feature')
- Push to the remote branch (git push origin my-feature)
- Create new Pull Request