![instagram bot account instagram bot account](https://i.pinimg.com/736x/fe/81/d6/fe81d6b6992b1d2c149c89b45aa22470.jpg)
We don’t have to worry about memory leaks caused by pages that we might have left open by accident.
INSTAGRAM BOT ACCOUNT CODE
To be perfectly clear, Puppeteer is on its own a browser interface, we just abstracted some code that would be constantly repeated. Also, it waits for our callback to return a promise, resolves it and closes the page.
![instagram bot account instagram bot account](https://instavast.com/wp-content/uploads/2019/05/homepage-automation-tool-mobile-v2.png)
Our getPage function creates a browser’s page for us, goes to the provided URL and injects our scraper (mentioned later). With that covered, let’s create our Browser interface which we will use to get rendered pages from Puppeteer. gitignore | | - README.md | | - package-lock.json | | - package.json | | - src/ | | | - common/ | | | | - browser/ | | | | | - api/ | | | | | | - authenticate.ts | | | | | | - comment-post.ts | | | | | | - find-posts.ts | | | | | | - follow-post.ts | | | | | | - get-following.ts | | | | | | - get-post-info.ts | | | | | | - get-user-info.ts | | | | | | - index.ts | | | | | | - like-post.ts | | | | | | - unfollow-user.ts | | | | | - index.ts | | | | - interfaces/ | | | | | - index.ts | | | | - scheduler/ | | | | | - index.ts | | | | | - jobs.ts | | | | - scraper/ | | | | | - scraper.js | | | | - utils/ | | | | | - index.ts | | | | - wit/ | | | | | - index.ts | | | - config.ts | | | - index.ts | | - tsconfig.json | | - tslint.json Browser Interface You can go ahead and copy the repository. The library allows us to create a headless Google Chrome / Chromium instance and control it by using the DevTools protocol.
![instagram bot account instagram bot account](https://blog-assets.hootsuite.com/wp-content/uploads/2024/05/instagram-automation-3.png)
Here is where Puppeteer comes into the picture.
INSTAGRAM BOT ACCOUNT HOW TO
All we need to do is just figure out how to interact with it remotely instead of manually, like regular users. If you think about it, Instagram’s website is in and of itself the platform’s API. To no avail, however, as it turned out to be a useless, outdated piece of software.Īnd although Facebook has been releasing new Instagram API recently, they only support business clients.īut hey, that’s no problem - I thought - I can create one of my own.Īnd that is precisely what we will learn today. Given my keen interest in IT, however, I wished to take the opportunity to test some real-world applications of what I had been learning and do so (gain followers, that is) using a bot, instead of putting in all the tedious work.įirst thing I did was check for an Instagram API. As the news broke about Instagram hitting one billion monthly active users, I couldn’t help but create an account of my own and try to win myself some following.