Skip to content

tobyjamesthomas/instagram-bot

Repository files navigation

InstagramBot

An Instagram bot that only likes ❤️ because fake comments and follow/unfollows are annoying 👎

Installation

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

For weather

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)

Usage

from instagram_bot import InstagramBot

ig = InstagramBot()

Like post

Like a post given the post's url:

url = 'https://www.instagram.com/p/Bjhav3XFUyd/'
ig.like(url)

Like user

Like a user's three most recent posts given their username:

username = 'tobytrek'
ig.like_user(username)

Like hashtag

Like the five most recent posts of a given hashtag, then like each post's user (see above):

hashtag = 'theofficememes'
ig.like_hashtag(hashtag)

Update bio

# 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.

Known Issues

  • Yahoo's weather-api is currently retired as of January 3, 2019.

Contribute!

Feel free to fork this project and add to it 😊

  1. Fork this project
  2. Create a branch for your feature (git checkout -b my-feature)
  3. Add and commit your changes (git commit -am 'My awesome feature')
  4. Push to the remote branch (git push origin my-feature)
  5. Create new Pull Request

About

An Instagram bot that only ❤️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published