1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iMacros instagram script help

Discussion in 'Black Hat SEO' started by yum114, Jun 22, 2017.

  1. yum114

    yum114 Newbie

    Joined:
    Nov 24, 2014
    Messages:
    3
    Likes Received:
    0
    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
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,309
    Likes Received:
    8,276
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    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.
     
  3. yum114

    yum114 Newbie

    Joined:
    Nov 24, 2014
    Messages:
    3
    Likes Received:
    0
    thanks for that. unfortunately it didnt work

    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
     
  4. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,309
    Likes Received:
    8,276
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    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.
     
  5. yum114

    yum114 Newbie

    Joined:
    Nov 24, 2014
    Messages:
    3
    Likes Received:
    0
    awe shit. thanks for the clarification. it works! :) I appreciate it a lot.
     
  6. Bernardo Junior

    Bernardo Junior Newbie

    Joined:
    Jun 24, 2017
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    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