autoclick on Instagram - problem with like

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
arielooopl
Posts: 4
Joined: Sun Mar 12, 2023 9:30 am

autoclick on Instagram - problem with like

Post by arielooopl » Sun Mar 12, 2023 9:45 am

Hello,
i used these macros:

Code: Select all

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 1
SET !VAR2 4
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=HREF:/p/*
WAIT SECONDS=2
TAG POS=3 TYPE=BUTTON ATTR=CLASS:wpO6b
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:Next
WAIT SECONDS={{!VAR2}}
TAG POS=3 TYPE=BUTTON ATTR=CLASS:wpO6b
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:Next
WAIT SECONDS={{!VAR2}}
TAG POS=3 TYPE=BUTTON ATTR=CLASS:wpO6b
WAIT SECONDS={{!VAR2}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
and only work follow and click on photo, but Like and Next dosent work.
I think when i try truck aria-label becouse i think iti is the best, but it dosent work - maybe someone smarter than me can figure it out??
It is ig code:

Code: Select all

<button class="_abl-" type="button"><div class="_abm0 _abm1"><svg aria-label="Like" class="_ab6-" color="rgb(142, 142, 142)" fill="rgb(142, 142, 142)" height="24" role="img" viewBox="0 0 24 24" width="24"><path d="M16.792 "></path></svg></div><div class="_abm0 _abl_"><span class=""><svg aria-label="Like" class="_ab6-" color="rgb(38, 38, 38)" fill="rgb(38, 38, 38)" height="24" role="img" viewBox="0 0 24 24" width="24"><path d="M16.792 "></path></svg></span></div></button>
techimac
Posts: 482
Joined: Fri Feb 20, 2015 9:27 pm

Re: autoclick on Instagram - problem with like

Post by techimac » Wed Mar 15, 2023 7:20 pm

Code: Select all

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 1
SET !VAR2 4
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=HREF:/p/*
WAIT SECONDS=2
TAG POS=1 TYPE=svg ATTR=aria-label:Like
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:Next
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=svg ATTR=aria-label:Like
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:Next
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=svg ATTR=aria-label:Like
WAIT SECONDS={{!VAR2}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
I dont use instagram so cannot test code and find working code for Next
Available for custom iim, javascript iMacros scripts
arielooopl
Posts: 4
Joined: Sun Mar 12, 2023 9:30 am

Re: autoclick on Instagram - problem with like

Post by arielooopl » Sun Mar 19, 2023 10:22 am

don't work :(
I think the problem may be because it is (probably) in xpath
techimac
Posts: 482
Joined: Fri Feb 20, 2015 9:27 pm

Re: autoclick on Instagram - problem with like

Post by techimac » Sun Mar 19, 2023 5:28 pm

if you have instagram test account then I can check with xpath click as well
Available for custom iim, javascript iMacros scripts
arielooopl
Posts: 4
Joined: Sun Mar 12, 2023 9:30 am

Re: autoclick on Instagram - problem with like

Post by arielooopl » Mon Mar 20, 2023 6:51 am

ok, i have instagram account, but i cant sand you massage here, why i write here:
l: ada.jankowska2222@poczta.fm
p: dirqas-xyZwyk-ketme2

if dont work i must write me for exemple email: ariel.tryka@gmail.com i send you another ig account.
automatiics
Posts: 2
Joined: Fri Jun 17, 2022 5:32 am

Re: autoclick on Instagram - problem with like

Post by automatiics » Mon Mar 20, 2023 10:55 am

Try this: (the selectors have changed slightly)

Code: Select all

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 1
SET !VAR2 4
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=HREF:/p/*
WAIT SECONDS=2
'button: LIKE
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Next
WAIT SECONDS={{!VAR2}}
'button: LIKE
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Next
WAIT SECONDS={{!VAR2}}
'button: LIKE
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS={{!VAR2}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
arielooopl
Posts: 4
Joined: Sun Mar 12, 2023 9:30 am

Re: autoclick on Instagram - problem with like

Post by arielooopl » Mon Mar 20, 2023 2:36 pm

working ❤️
you are the best
can you the same fot watching stories? and give like?
techimac
Posts: 482
Joined: Fri Feb 20, 2015 9:27 pm

Re: autoclick on Instagram - problem with like

Post by techimac » Mon Mar 20, 2023 2:40 pm

I cannot login
Available for custom iim, javascript iMacros scripts
techimac
Posts: 482
Joined: Fri Feb 20, 2015 9:27 pm

Re: autoclick on Instagram - problem with like

Post by techimac » Mon Mar 20, 2023 4:35 pm

Stories

Code: Select all

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 1
SET !VAR2 4
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=1
tag pos=1 type=h2 attr=* extract=txt
url goto=https://www.instagram.com/stories/{{!extract}}
WAIT SECONDS=5
tag pos=1 type=button attr=txt:View<sp>story
WAIT SECONDS=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
tag pos=1 type=button attr=aria-label:Next
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
tag pos=1 type=button attr=aria-label:Next
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS={{!VAR2}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
or

Code: Select all

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 1
SET !VAR2 4
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=1
TAG POS=2 TYPE=IMG ATTR=alt:*profile<sp>picture
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
tag pos=1 type=button attr=aria-label:Next
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
tag pos=1 type=button attr=aria-label:Next
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS={{!VAR2}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
Available for custom iim, javascript iMacros scripts
automatiics
Posts: 2
Joined: Fri Jun 17, 2022 5:32 am

Re: instagram stories auto like

Post by automatiics » Mon Mar 20, 2023 5:38 pm

I have used the same concept as for Instagram post auto like script. Customize for your needs.

Code: Select all

SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 1
SET !VAR2 4
'START POINT: Instagram Profile page
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=1
'CLICK on profile image
TAG POS=2 TYPE=IMG ATTR=ALT:*profile<sp>picture
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
'button: NEXT
TAG POS=1 TYPE=DIV ATTR=CLASS:_9zm2
WAIT SECONDS={{!VAR2}}
'button: LIKE
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS=1
TAG POS=1 TYPE=DIV ATTR=CLASS:_9zm2
WAIT SECONDS={{!VAR2}}
'button: LIKE
TAG POS=1 TYPE=BUTTON ATTR=TXT:LikeLike
WAIT SECONDS={{!VAR2}}
TAB CLOSE
TAB T=1
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
Post Reply