iMacros instagram script help

yum114

Newbie
Joined
Nov 24, 2014
Messages
16
Reaction score
1
I am looking for a way to unfollow accounts on instagram, but I only want to unfollow specific accounts.
Is there any way to go to my followers list, and run an imacros script that will find a certain username then click the "following" button next to it so that it unfollows that specific account?

currently, the script below when repeated just goes through the list and unfollows everyone, but I want it to only unfollow specific users. Thank you for any help

TAG POS=1 TYPE=BUTTON ATTR=TXT:Following
TAB T=1
WAIT SECONDS=4
 
Well, that's pretty easy to make, you just need to add a few things to your macro.

Prepare a .txt file with the usernames you want to unfollow, one username per line.
In the below example i just made quick, you need to have your usernames.txt in the root of your c: drive, so you either put it there or modify the path in the 4th line of the code.
I also switched your 4 seconds wait time to random wait times between 5-15 seconds:
Code:
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE YES
SET !DATASOURCE c:\usernames.txt
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 15); randomNumber;")
URL GOTO=https://instagram.com/{{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Following
WAIT SECONDS={{!VAR1}}

Play it in loop. The loop count = the number of accounts you want to unfollow.

I haven't tested it, but if you recorded the unfollow part right, it should work. Maybe it needs a WAIT SECONDS command after the page is loaded, before clicking the unfollow button.

Disclaimer: i don't do Instagram, so i'm not familiar with the safe limits, you should adjust the wait times and total amount of actions accordingly.
 
thanks for that. unfortunately it didnt work

Well, that's pretty easy to make, you just need to add a few things to your macro.

Prepare a .txt file with the usernames you want to unfollow, one username per line.
In the below example i just made quick, you need to have your usernames.txt in the root of your c: drive, so you either put it there or modify the path in the 4th line of the code.
I also switched your 4 seconds wait time to random wait times between 5-15 seconds:
Code:
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE YES
SET !DATASOURCE c:\usernames.txt
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 15); randomNumber;")
URL GOTO=https://instagram.com/{{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Following
WAIT SECONDS={{!VAR1}}

Play it in loop. The loop count = the number of accounts you want to unfollow.

I haven't tested it, but if you recorded the unfollow part right, it should work. Maybe it needs a WAIT SECONDS command after the page is loaded, before clicking the unfollow button.

Disclaimer: i don't do Instagram, so i'm not familiar with the safe limits, you should adjust the wait times and total amount of actions accordingly.

thanks for that. unfortunately, it didn't work.
Code:
URL GOTO=xxxxx

this part of the code opens the instagram page, but will not open my followers list, so I cant put this into the script. I usually just load the site, and open the followers list and then run the script without a url go to line.

Code:
TAG POS=1 TYPE=BUTTON ATTR=TXT:Following

this part of the code will also unfollow the first person on the list that has not been unfollowed yet. so even if it finds the usernames in the txt files, the code above wouldn't necessarily click the following button next to them, but instead, the first person on my followers list. POS=1 is the first position with the button it will click. I tried to move the parts of the code I listed above, and imacros didnt scroll to the username on the txt document I created. but if it did, the "pos=1" would have to be changed to somehow click the button that is a certain amount of space to the right of the username. this button is in the same exact location for each user on the list though, so if I could just get the script to work to find the user name, and then click a button that is in a certain position on the page(once the user had been found) it would work. I appreciate the attempt at the help though. especially with you having no use of instagram at all
 
Wow, thanks for the quick response. I have been looking for something like this for a while. I will check it out and report back the results. Is the "URL GOTO=......" line necessary? For some reason, I delete that from my instagram macros because it loads instagram, but never loads my actual followers list, so the goto would not work in this case. Hopefully, I can just have the list up, do the code without the go to and it works the same? but its nice to know that "set !datasource" has it look for the name.

TAG POS=1 TYPE=BUTTON ATTR=TXT:Following
means it clicks the button to unfollow the first account in the following list. so Im not entirely sure it would work. no way to get it to tag position type button following on the same line as the username it just previously searched for? the usernames are on the left, so if it finds the username, and just goes to the right a certain amount(its the same amount every time) and click, it would be clicking the button that would unfollow the account
The URL GOTO command is necessary, because that's what navigates to the usernames one-by-one on your pre-defined list. The macro doesn't go to your follower list at all, it navigates to the page of instagram users, so it can unfollow them one-by-one, otherwise there's no way with iMacros to unfollow only certain users, but not the others on your follower list.

Maybe it wasn't clear enough what the macro does exactly, but if you want to unfollow only specific accounts, leave the macro as is.
 
Well, that's pretty easy to make, you just need to add a few things to your macro.

Prepare a .txt file with the usernames you want to unfollow, one username per line.
In the below example i just made quick, you need to have your usernames.txt in the root of your c: drive, so you either put it there or modify the path in the 4th line of the code.
I also switched your 4 seconds wait time to random wait times between 5-15 seconds:
Code:
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE YES
SET !DATASOURCE c:\usernames.txt
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*10 + 15); randomNumber;")
URL GOTO=https://instagram.com/{{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Following
WAIT SECONDS={{!VAR1}}

Play it in loop. The loop count = the number of accounts you want to unfollow.

I haven't tested it, but if you recorded the unfollow part right, it should work. Maybe it needs a WAIT SECONDS command after the page is loaded, before clicking the unfollow button.

Disclaimer: i don't do Instagram, so i'm not familiar with the safe limits, you should adjust the wait times and total amount of actions accordingly.
awe shit. thanks for the clarification. it works! :-) I appreciate it a lot.
 
Hello friends, I need a code similar to this, that when you are in the profile of the instagram of someone verify that in the profile is written a certain word, example "Brazil" if you have written it click it next, if it has not written it closes the tab
 
Back
Top