A small Instagram bot package that uses some basic functions. Download and have fun
Project description
Instagram_Bot
This instabotpy is a module that is used to login, like, unlike, follow, unfollow, logout, open post in your profile and in explore section of the instagram in your web.
Make sure that your system has Chormedriver or install it by clicking here
Note: This module uses selenium webdriver. Based on your chrome version select the chromedriver installation options and make sure that chromedriver is installed in path C:\Program Files\chromedriver.exe.
If you don't have selenium webdriver pre-installed on your computer, then or click here or install using
pip install selenium
Module Usage
To use this module clone into your python scripts or
pip install instabotpy
In-order to make sure that instabotpy works properly after installation type on python shell as
>>> import instabotpy
Now you should see a Chrome browser open with instagram login page
Login into instagram
from instabotpy import *
# Used to login without accepting to turn on notifications or save informations
#User is recommended to login with this option always
login_no_info(username,password)
#used to open and user is allowed to select the options for saving info and for notifications
opens(username,password)
#opens with post notfications while you're surfing in Instagram
# Not recommended unless user is less active on Instgram
login_info(username,password)
Logout of Instagram
#logs out by clearing all cookies in your test browser
logout()
Basic functions
like() #to like post
unlike() #to unlike post. Works only when you like post or it perfoms like function
screentime(int value) # Adjust the time you are on instagram
explore() # Opens explore
first_post() # Opens first post in explore. Must be used after explore
follow() # Follows the account opened using first_post()
unfollow() # Musyt follow to unfollow the account. Used after first_post() and follow() commands
exit_post() # Closes the post opened by using first_post()
profile() # Opens profile
close_all() # Closes the chrome window by deleting cookies
account() # Opens an account. Use after first_post()
ref() # Refreshes chrome
end_scroll() # End scroll
init_scroll() # Home scroll
pd() # Page down
pu() # Page up
home() # Opens home
Example Code
from instabotpy import *
x = login_no_info(username,password)
explore()
home()
pofile()
home()
logout()
Email ID can also be given instead of your username
Note: This module is for just demo purpose of how you can use instagram via python. Use it carefully. The developer of this module is not responsible for any of users mistake or for any loss of data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for instabotpy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc8edb223300c3ba204b060dc8ef9d86a7adb582949b691818527294038eff1 |
|
MD5 | b4afd6db7455fe4eb1e5e0d29b2eed87 |
|
BLAKE2b-256 | 4dca0e8f64d53f204e30de2e6dfbf03b8c46491ac79ae9b8177b4de83b30f602 |