Skip to content

Instantly share code, notes, and snippets.

@EsteveSegura
Created October 21, 2019 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EsteveSegura/93e896e085ab887eec6ea8ac041de0c4 to your computer and use it in GitHub Desktop.
Save EsteveSegura/93e896e085ab887eec6ea8ac041de0c4 to your computer and use it in GitHub Desktop.
instagram bot
//instagram workflow
(async () => {
let ig = await login(); //login
await setAntiBanMode(ig); //anti-ban Mode
//repeat this every hour
setInterval(async () => {
let posts = await recentHashtagList(ig, "foodporn"); //get all hashtags in #foodporn hashtag
for(let i = 0 ; i < posts.length ; i++){
let actualPost = await downloadPost(ig,posts[i].pk) //download picture
}
}, 60000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment