Insu — Instagram Bot.

import time
import pyautogui as pg
from pyfiglet import Figlet
f = Figlet(font='doom')
print(f.renderText('InSu'))
print("------------------------------Namaste------------------------------------")
print("----------------(Insu(v0.5) Instagram Bot by likenull)-------------------")
count = 0
numlikes = int(input("How many post to like: "))
print(str(numlikes) + " posts to like")
print()
hastag = str(input("Hashtag to use:"))
print("Using hashtag: " + str(hastag))
print()
print("Launching(slow mode)...")
time.sleep(2)
pg.click(236, 98)
pg.write(hastag)
print()
pg.PAUSE = 3.25
pg.press('down')
pg.PAUSE = 2.0
pg.press('enter')
pg.press('enter')
pg.PAUSE = 3.6
pg.press('pagedown')
#Step 2 post click
pg.PAUSE = 2.0
pg.click(98, 518)
pg.PAUSE = 3.0
#alinging pointer to the middle Point(x=339, y=400)
print("Liking recent Post by tag.....")
print()
pg.moveTo(332, 400)
pg.Pause = 2.0
pg.doubleClick(332, 400)
print("First post liked")
print()
print("************************************************************************")
pg.Pause = 3.5
pg.press('right')
count = 1
while (count < numlikes):
count = count + 1
pg.doubleClick(332, 400)
pg.Pause = 4.0
pg.press('right')
print("\rPosts liked: "+str(count), end='')
pg.Pause = 0.1
else:
print("********************************************************************")
print()
print(str(numlikes) +" Post liked. By tag" + str(hastag))
#print(screensize)
#print(pointer)
print("\rPosts liked: "+str(count), end='')
codelikenull

Tech enthusiast, Web Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Learning Dynamic Components — Making a Pizza Creator App using Angular

R to read GEE export CSV data

How To Create A Quiz App in React

Profanity Check — Using IBM Cloud Functions — in a snap (less than 5 mins)

Wasm Introduction (Part 4): Function Call

10 Main Core Concept You Need to Know About React

!!!Atoms, Molecules …. TDD??

Molecules made of atoms

Making code a bit more readable

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Atul kumar singh

Atul kumar singh

Tech enthusiast, Web Developer.

More from Medium

Create Your First Reddit Bot with Python and Heroku

Escape from Blocking IP using Rotating Proxy in Python Yell.com Case Study

Football Betting Predcition and PythonAnywhere Rollout

Use Python and Spotify to Play MINGO