Created
October 21, 2019 18:03
-
-
Save EsteveSegura/93e896e085ab887eec6ea8ac041de0c4 to your computer and use it in GitHub Desktop.
instagram bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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