-
-
Save EsteveSegura/554ad1bc1a2d8254204e6460f32e3100 to your computer and use it in GitHub Desktop.
follow by interval
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
//Get all users from hashtags | |
let allPosts = await getPostsFromHashtags(ig,hashtags) | |
/* | |
We go through the entire array to users | |
randomly and also follow with an irregular interval | |
between 3 seconds and 220 seconds | |
*/ | |
for(let i = 0 ; i < followsPerInterval ; i++){ | |
await sleep(randomIntInc(3,220)) | |
followUser(ig,allPosts[randomIntInc(0,allPosts.length)].user.pk) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment