how to use EVAL jump into other urls after finished action

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

how to use EVAL jump into other urls after finished action

by a2515125 on Fri Apr 07, 2017 10:46 am

hey,

I am writing a code to auto press liker button on different categories of shopping website.

Each category has around 99 pages....which means my code would only run 99 pages

and then the code does not know how to jump to other categories (such as girly stuff, boy stuff, computer, hardware) and keep running 99pages and then the jump into another categories, do it again.


so my problem is how to use EVAL syntax jump into another categories(urls) (ex. from clothing to electric, pc, house, car, kitchen stuff, cosmetic and so on)to run again after it finished 99 pages :idea:


windows 10/imacros v8.9.7/FFv 50

Code: Select all
VERSION BUILD=8970419 RECORDER=FX
SET !REPLAYSPEED FAST
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0

FILTER TYPE=IMAGES STATUS=ON
TAB T=1


'set to press liker button'

TAG POS=2 TYPE=PATH ATTR=D:M<SP>7.5<SP>4.2<SP>l<SP>1.3<SP>-1.3<SP>c<SP>1.2<SP>-1.2<SP>3.1<SP>-1.2<SP>4.3<SP>0<SP>l<SP>0<SP>0<SP>c<SP>1.2<SP>1.2<SP>1.2<SP>3.2<SP>0<SP>4.4<SP>l<SP>-5.6<SP>5.8<SP>L<SP>1.9<SP>7.3<SP>c<SP>-1.2<SP>-1.2<SP>-1.2<SP>-3.2<SP>0<SP>-4.4<SP>l<SP>0<SP>0<SP>c<SP>1.2<SP>-1.2<SP>3.1<SP>-1.2<SP>4.3<SP>0<SP>L<SP>7.5<SP>4.2<SP>z&&FILL:none&&STROKE-LINEJOIN:round&&STROKE-MITERLIMIT:10&&STROKE-WIDTH:2&&TXT:
WAIT SECONDS=1

'move next page in the same category'
SET next EVAL("var x; var y=\"{{!LOOP}}\";if(y%50==0){x=1}else{x=0}; x;")

TAG POS={{next}}  TYPE=DIV ATTR=CLASS:shopee-icon-button<SP>shopee-icon-button--right<SP>













a2515125
 
Posts: 57
Joined: Mon Dec 05, 2016 8:37 pm

Return to General Support & Discussions

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Yahoo [Bot] and 3 guests

Website Monitoring