DEV Community

Cover image for JavaScript INSTAGRAM bot

JavaScript INSTAGRAM bot

Danijela.js🛞 on July 20, 2019

You know a little bit of JavaScript, and you want to build your following on Instagram, but don't want to share your password with some app, and yo...
Collapse
 
jiwebdev profile image
Nathan M • Edited

this works for me. Updated version August 6, 2020

Collapse
 
jose2016 profile image
Joseph Rodriguez

YES this one is working very good thanks for sharing @danijelajs and @jiwebdev

Collapse
 
samcologne profile image
samcologne

Seems that it doesn't work anymore. Anyone a solution?

Collapse
 
jiwebdev profile image
Nathan M

I fixed it. take a look ;)

Thread Thread
 
samcologne profile image
samcologne

Wow really good ideas, great job. Thank you.
But i couldn't run this one. This one is diffrent, Its for the feet, not for some #hashtag searches, right!?
The old one worked great. Im going to try to fix the old one with some of your new tools ;)
But the like button doens't work and the class name is the same like before, I think.

Collapse
 
alvarofelipe12 profile image
Alvaro Felipe García Méndez

I tried it and it worked... in the first photo, then in the second photo seems like the html that shows the pic and the like button, is destroyed and built again in a few seconds, so in the second photo it did the like.click() somewhere else but not in the second photo...but the next.click() works nice cause these a 'buttons' are not destroyed and changes to the next pic. Besides this, i found it very clever and fun. Can you confirm if my theory is true?

Collapse
 
danijelajs profile image
Danijela.js🛞 • Edited

I'm not sure what you mean by "destroyed" 😂 But when ever you click on the tab, it will load the code again. It's set to like every 20 seconds.

Collapse
 
ankit662002 profile image
ankit662002

Most of the instagram bots do not work anymore. The only instagram bot which works now is InstaCaptain.com . All the other Instagram Bots are now outdated and easily detected.

Collapse
 
danijelajs profile image
Danijela.js🛞

This is not really an instagram bot. Just a piece of code to use in browser console. So it works. Are you trying to advertise your own app here?

Collapse
 
gspteck profile image
GSPTeck • Edited

Yeah he is advertising his own app, because there are a ton of Instagram bots that work. lol

Collapse
 
champi profile image
Champi • Edited

This is so "simple" yet highly clever!
I've never though on messing around with the Instagram webapp in this way.

Cool

Collapse
 
danijelajs profile image
Danijela.js🛞

Thanks!😊 People don't use the browser console too often. You can do a lot of things with it, you just need a little bit of imagination 😊

Collapse
 
_jayantsharma profile image
Jayant Sharma

Can you tell what this code or ur bot will do as am also a newbie.

Collapse
 
danijelajs profile image
Danijela.js🛞

It will like images with the same hashtag.

Collapse
 
_jayantsharma profile image
Jayant Sharma

Okk

Collapse
 
yanant profile image
yanant

This worked like a charm! But it looks like IG has picked up on the behaviour and started blocking the action from running :(

Collapse
 
danijelajs profile image
Danijela.js🛞

They probably just changed the class name. That's why you have to use the browser console.

Collapse
 
yanant profile image
yanant

Hmmm, I'll take a look once they lift my block. Thanks for the tip! :)

Collapse
 
dhanushkadev profile image
Dhanushka madushan

API was the first thing that comes into my mind when I heard making bot. Then getting API keys, setting up server, hundred lines of codes bla bla. But this is a clever simple way. Thank you.

Collapse
 
danijelajs profile image
Danijela.js🛞

I know. It doesn't require any Back-End knowledge, it's "easy peasy lemon squeezy"🍋😁 Thanks, you are welcome. I'm glad I helped someone 😊👍🏻

Collapse
 
mostmojo profile image
Jacob Papageorgiou

This is great, is there one for twitter too? :)

Collapse
 
devrambeno profile image
devrambeno

I'm trying it out, sorry I'm new to this stuff, but I wasn't successful at setting it up. I keep getting Uncaught TypeError: Cannot read property 'click' of null

Collapse
 
danijelajs profile image
Danijela.js🛞

You have to type a hashtag in the search bar on insta, then open the first image, open the console.There is an image of the code here, just copy the code to the console, it should work.Good luck!🍀😊

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
danijelajs profile image
Danijela.js🛞

Thanks!😊🙏

Collapse
 
marinagherman profile image
Info Comment hidden by post author - thread only accessible via permalink
Marina

Here is my version, what do you think?
gist.github.com/MarinaGherman/9e50...

Some comments have been hidden by the post's author - find out more