Questions about Social Media bots

i dont understand what u mean.?
I want to follow all the followers from one user, for example all followers from "Tesla" account. you can't follow them from the popup, Selenium will eventually crash.
 
with selenium you can easily follow them. u do the basic:
-go to the account
-open his folowers window
-and follow his followers with this kind of lines:

int counter = 0;
var followList = driver.FindElements(By.XPath(//button[text()='Follow']);
foreach(var buttons in followList)
{
buttons.Click();
Thread.Sleep(1000);
counter++;
if(counter == 50)
{
break;
}
}

it might be something like this. If it crash, it can be because you didnt scroll the windows and ajax didnt loaded more followers.

Well good luck




this is how i do. This being said, dont go on a rush and follow all the followers in one shot, ig monitor the numbers of actions per hours/day and if ig dont care really much with you being using selenium(because they probably can know it if they want to) they r really picky on number of actions you do and will restrict your account.
 
with selenium you can easily follow them. u do the basic:
-go to the account
-open his folowers window
-and follow his followers with this kind of lines:

int counter = 0;
var followList = driver.FindElements(By.XPath(//button[text()='Follow']);
foreach(var buttons in followList)
{
buttons.Click();
Thread.Sleep(1000);
counter++;
if(counter == 50)
{
break;
}
}

it might be something like this. If it crash, it can be because you didnt scroll the windows and ajax didnt loaded more followers.

Well good luck




this is how i do. This being said, dont go on a rush and follow all the followers in one shot, ig monitor the numbers of actions per hours/day and if ig dont care really much with you being using selenium(because they probably can know it if they want to) they r really picky on number of actions you do and will restrict your account.
I'm using Python, what I did was open the popup choose randomly from the list, then, using JS to scroll down to trigger the ajax request. but that's the problem. sometimes it does not send request and crashes. so I'm trying to figure out how to get all followers list from instagram graphql if possible.
 
I'm using Python, what I did was open the popup choose randomly from the list, then, using JS to scroll down to trigger the ajax request. but that's the problem. sometimes it does not send request and crashes. so I'm trying to figure out how to get all followers list from instagram graphql if possible.
well using the instagram api is not the best way for botting as any account will have to get their own api token.

Im in the process of making reverse engineering of instagram api but its a real complicated one tbh.

So to return to our main subject, what i suggest, is to keep using javascript to load the followers with a loop that will continue to add followers to a list of iwebelement and break the loop if there is no more users. This will prevent selenium from crashing as it will not make selenium executing action it cant do.

Just by curiosity, maybe ig only show 100 followers at a time? I never checked but maybe its why its crashing passing 100?
 
Did you make random sleep between each follow click? Because i know that when you click on "follow", it have a 1-2 second kind of loading. Tbh with you, i never had any problem with this part so its definitively a small thing you need to fix
 
well using the instagram api is not the best way for botting as any account will have to get their own api token.

Im in the process of making reverse engineering of instagram api but its a real complicated one tbh.

So to return to our main subject, what i suggest, is to keep using javascript to load the followers with a loop that will continue to add followers to a list of iwebelement and break the loop if there is no more users. This will prevent selenium from crashing as it will not make selenium executing action it cant do.

Just by curiosity, maybe ig only show 100 followers at a time? I never checked but maybe its why its crashing passing 100?
But If you keep Selenium in the background or you run out of memory, it will crash, mine crashes If, for example I have a user with 2000 followers, everything works fine (except if you spam and then they send 429 too many requests error), if I let it run on the background, it will crash due to no elements has been loaded.

Also you can actually intercept the request and change it using selenium-wire, max number of user the can be sent from the server is 100. but sometimes, instagram thinks your account has been compromised and you need to change the password.

Instagram shows 12 followers per request in the popup. max 100 if you intercept and change the request.

Did you make random sleep between each follow click? Because i know that when you click on "follow", it have a 1-2 second kind of loading. Tbh with you, i never had any problem with this part so its definitively a small thing you need to fix
I know, but I'm not worried about that as much as I'm worried about it crashes. I can send you the code if you want to. :)
 
But If you keep Selenium in the background or you run out of memory, it will crash, mine crashes If, for example I have a user with 2000 followers, everything works fine (except if you spam and then they send 429 too many requests error), if I let it run on the background, it will crash due to no elements has been loaded.

Also you can actually intercept the request and change it using selenium-wire, max number of user the can be sent from the server is 100. but sometimes, instagram thinks your account has been compromised and you need to change the password.

Instagram shows 12 followers per request in the popup. max 100 if you intercept and change the request.


I know, but I'm not worried about that as much as I'm worried about it crashes. I can send you the code if you want to. :)
im not really use to python imma send u mine instead its c#
 
But If you keep Selenium in the background or you run out of memory, it will crash, mine crashes If, for example I have a user with 2000 followers, everything works fine (except if you spam and then they send 429 too many requests error), if I let it run on the background, it will crash due to no elements has been loaded.

Also you can actually intercept the request and change it using selenium-wire, max number of user the can be sent from the server is 100. but sometimes, instagram thinks your account has been compromised and you need to change the password.

Instagram shows 12 followers per request in the popup. max 100 if you intercept and change the request.


I know, but I'm not worried about that as much as I'm worried about it crashes. I can send you the code if you want to. :)
can you please share the code
 
can you share the link for selenium please :)
sorry if i am being silly at this but am a newbie and just trying to learn things
so if anyone can help please:)
 
Saw this was posted about 4 months ago. Any new updates on your progress with your new ventures?

Just took the time to read through this whole thread, because I am also doing research into instagram automation, whether it’s through creating my own bots, or buying from sellers then just using them.

Hope you’ve had good luck!
 
Back
Top