How to use iMacros with logic like if/else for instagram?

偶尔善良 提交于 2019-12-08 12:48:29

问题


I am using iMacros for instagram automation to create an auto-follower. I go to the hashtag section, then go to most recent, and I want to follow anyone in the "most recent section" that I am not already following.

This is what I have:

VERSION BUILD=844 RECORDER=CR
URL GOTO=https://www.instagram.com/p/BRvYjUPjB7m/?tagged=scootershop
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
TAG POS=1 TYPE=A ATTR=TXT:Next
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
TAG POS=1 TYPE=A ATTR=TXT:Next
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
TAG POS=1 TYPE=A ATTR=TXT:Next

But i want it to do a sort of "if the button txt is 'follow', then click it" but if it says 'following', just click "Next".

I am aware iMacros has no built in if/else statement, but I am brand new to this, and need some guidance. Thank you!


回答1:


You can try something like this:

URL GOTO=https://www.instagram.com/p/BRvYjUPjB7m/?tagged=scootershop

SET !ERRORIGNORE YES
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
SET !ERRORIGNORE NO
TAG POS=1 TYPE=A ATTR=TXT:Next

SET !ERRORIGNORE YES
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
SET !ERRORIGNORE NO
TAG POS=1 TYPE=A ATTR=TXT:Next

SET !ERRORIGNORE YES
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
SET !ERRORIGNORE NO
TAG POS=1 TYPE=A ATTR=TXT:Next


来源:https://stackoverflow.com/questions/42861472/how-to-use-imacros-with-logic-like-if-else-for-instagram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!