imacros downloading the url address - imacros

I am trying to record and as I click around a site I want to capture every url address I am landing on. Is there a way to do this?
Here is an example of my macro:
VERSION BUILD=8021970
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://www.meritorpartsonline.com/webapp/wcs/stores/servlet/CategoryDisplay?urlRequestType=Base&catalogId=10051&categoryId=10001&pageView=detailed&urlLangId=-1&beginIndex=0&langId=-1&top_category=10001&top=Y&parent_category_rn=10001&storeId=10154
TAG POS=1 TYPE=A FORM=ID:displayForm ATTR=ID:WC_CategoriesSidebarDisplayf_links_2_1
TAG POS=1 TYPE=A FORM=ID:displayForm ATTR=ID:WC_CategoriesSidebarDisplayf_links_2_1
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=1 TYPE=A FORM=ID:displayForm ATTR=ID:WC_CategoriesSidebarDisplayf_links_2_1
TAG POS=1 TYPE=A ATTR=ID:WC_BreadCrumbTrailDisplay_link_4
TAG POS=1 TYPE=A FORM=ID:displayForm ATTR=ID:WC_CategoriesSidebarDisplayf_links_2_2
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*
TAG POS=4 TYPE=IMG ATTR=SRC:https://www.meritorpartsonline.com/wcsstore/MeritorStorefrontAssetStore/images/*

Play the macro below and surf the web. It will write every url that you visit, in the ‘dnlUrls.txt’ file. (Stop this macro when you want to finish tracking.)
SET !LOOP -9999999
SET urlFolder EVAL("('{{urlAddress}}' != '{{!URLCURRENT}}') ? '*' : 'noSuchFolder';")
SET urlAddress EVAL("('{{urlAddress}}' != '{{!URLCURRENT}}') ? '{{!URLCURRENT}}' : '{{urlAddress}}';")
SET !EXTRACT {{urlAddress}}
SET !ERRORIGNORE YES
SAVEAS TYPE=EXTRACT FOLDER={{urlFolder}} FILE=dnlUrls.txt
SET !ERRORIGNORE NO
WAIT SECONDS=1

Related

How to take data every column and row in excel and put another form using i macros

Pleas help me to How i can take data from excel sheet (every column and row )
Let suppose
Column1 Column 2
Row1 203-9996158-5745105 15505431376413
Row2 202-1824037-7498701 15505431376685
How can i get data from excel and put to another website
TAG POS=3 TYPE=INPUT:TEXT FORM=ACTION:https://sliex.com/orders-v3/ref=xx_myo_dnav_xx?page=1 ATTR=* CONTENT=203-9996158-5745105
TAG POS=5 TYPE=INPUT:SUBMIT FORM=ACTION:https://sliex.com/orders-v3/ref=xx_myo_dnav_xx?page=1 ATTR=*
TAG POS=8 TYPE=INPUT:SUBMIT ATTR=*
TAG POS=4 TYPE=SPAN ATTR=TXT:Select<SP>an<SP>option
TAG POS=1 TYPE=A ATTR=TXT:DPD
TAG POS=4 TYPE=INPUT:TEXT ATTR=* CONTENT=15505431376413
TAG POS=5 TYPE=INPUT:TEXT ATTR=* CONTENT=15505431376413
TAG POS=9 TYPE=INPUT:SUBMIT ATTR=*
This is single manually code but i want all automation.. First take data first row when done then auto start next row
Thanks
Save excel table as into a comma-separated text (CSV) file.
Edit macros
SET !DATASOURCE filename.csv
SET !VAR1 {{!COL1}}
SET !VAR2 {{!COL2}}
TAG POS=3 TYPE=INPUT:TEXT FORM=ACTION:https://sliex.com/orders-v3/ref=xx_myo_dnav_xx?page=1 ATTR=* CONTENT={{!VAR1}}
TAG POS=5 TYPE=INPUT:SUBMIT FORM=ACTION:https://sliex.com/orders-v3/ref=xx_myo_dnav_xx?page=1 ATTR=*
TAG POS=8 TYPE=INPUT:SUBMIT ATTR=*
TAG POS=4 TYPE=SPAN ATTR=TXT:Select<SP>an<SP>option
TAG POS=1 TYPE=A ATTR=TXT:DPD
TAG POS=4 TYPE=INPUT:TEXT ATTR=* CONTENT={{!VAR2}}
TAG POS=5 TYPE=INPUT:TEXT ATTR=* CONTENT={{!VAR2}}
TAG POS=9 TYPE=INPUT:SUBMIT ATTR=*

need help for imacros code to request first 25 "answer request" from writer on quora

i am new to imacros...
i have tried to record the imacros to request an answer from the writer but I think it's dynamically changing the pos and values...
so, looking for a way to do this...
here is the code that I have recorded
VERSION BUILD=1005 RECORDER=CR
TAG POS=12 TYPE=SVG ATTR=TXT:
TAG POS=2 TYPE=PATH ATTR=STROKE-LINECAP:round&&TXT:
TAG POS=3 TYPE=CIRCLE ATTR=CX:12&&CY:12&&R:9&&TXT:
TAG POS=1 TYPE=A ATTR=ID:__w2_wx4nZclL125_button
TAG POS=23 TYPE=SVG ATTR=TXT:
TAG POS=25 TYPE=SVG ATTR=TXT:
TAG POS=1 TYPE=A ATTR=ID:__w2_wx4nZclL134_button
TAG POS=29 TYPE=SVG ATTR=TXT:
TAG POS=31 TYPE=SVG ATTR=TXT:
TAG POS=1 TYPE=A ATTR=ID:__w2_wOt2sXY49_button
TAG POS=35 TYPE=SVG ATTR=TXT:
TAG POS=1 TYPE=DIV ATTR=ID:__w2_wJ28TPOd2_list_item
TAG POS=37 TYPE=SVG ATTR=TXT:
TAG POS=1 TYPE=A ATTR=ID:__w2_wDJBb2oM9_button
TAG POS=1 TYPE=A ATTR=ID:__w2_wx4nZclL2_submit

Automatically Add Next Value (+1) to TAG POS=(number) for iMacro?

I'm creating an iMacro to update wordpress posts. I have the following:
URL GOTO=https://www.example.com
TAG POS=1 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
The problem I have is that I need to update 400+ pages/posts.
The code:
TAG POS=NUMBER TYPE=A ATTR=TXT:Edit
tells which post to update, so I know I have to make POS=2, POS=3, POS=4, etc. all the way up to 400 but I need a better way, instead of copy pasting and manually editing each line.
Is there a way to make the code say TAG POS=N+1 or something to make it the next number until it reaches 400?
This is an example of 1-10
URL GOTO=https://www.example.com
TAG POS=1 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=2 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=3 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=4 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=5 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=6 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=7 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=8 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=9 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
TAG POS=10 TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
There has to be a better way to doing this up to 400? :(
I will translate Shugar's answer to code:
URL GOTO=https://www.example.com
TAG POS={{!LOOP}} TYPE=A ATTR=TXT:Edit
WAIT SECONDS=2
TAG POS=1 TYPE=A ATTR=TXT:Map
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:post ATTR=TXT:Find<SP>Check
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:post ATTR=ID:publish
WAIT SECONDS=4
TAG POS=2 TYPE=A ATTR=TXT:Previous
WAIT SECONDS=2
All we did is change the position to {{!LOOP}} at line 2 and if you run it as "Play (Loop)" with max = 400 it will solve your issue. If something broke and you want to start from pos X lets say 200 you can set the !LOOP to start from that number

Loop Specific Lines From datasource imacro

`SET !ERRORIGNORE YES
SET !DATASOURCE user.txt
SET !LOOP 1
SET !DATASOURCE_COLUMNS 4
URL GOTO=myurl
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:username CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:form1 ATTR=ID:password CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:form1 ATTR=ID:remember CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=ID:submit
SET !ERRORIGNORE YES
SET !DATASOURCE gradu.txt
SET !LOOP 1
SET !DATASOURCE_COLUMNS 4
SET MyLoop {{!LOOP}}
ADD MyLoop {{!LOOP}}
ADD MyLoop {{!LOOP}}
ADD MyLoop -1
SET !DATASOURCE_LINE {{MyLoop}}
URL GOTO=myurl
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:sourceCodeArea ATTR=*
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:formApprove ATTR=NAME:title CONTENT={{!COL1}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:formApprove ATTR=NAME:description CONTENT={{!COL1}}
SET !VAR1 EVAL("var s = '{{!COL1}}'.replace(/ /g, ','); s;")
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:formApprove ATTR=NAME:tags CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:formApprove ATTR=ID:approveButton2
wait seconds=25
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:/sketch/*/postComment ATTR=ID:commentTextArea CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/sketch/*/postComment ATTR=NAME:Submit
ADD MyLoop 1
SET !DATASOURCE_LINE {{MyLoop}}
URL GOTO=myurl
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:sourceCodeArea ATTR=*
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:formApprove ATTR=NAME:title CONTENT={{!COL1}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:formApprove ATTR=NAME:description CONTENT={{!COL1}}
SET !VAR1 EVAL("var s = '{{!COL1}}'.replace(/ /g, ','); s;")
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:formApprove ATTR=NAME:tags CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:formApprove ATTR=ID:approveButton2
wait seconds=25
TAG POS=1 TYPE=TEXTAREA FORM=ACTION:/sketch/*/postComment ATTR=ID:commentTextArea CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/sketch/*/postComment ATTR=NAME:Submit`
I am trying to login to website using datasource user.txt and post first three lines from datasource gradu.txt.After that i want to login to next user using datasource user.txt and want to post next three lines of datasource gradu.txt.But my code not working.How can it work.here is my code.

Imaco - Extracting HREF from Linkedin Search Results

I am trying to extract profile URLs from linkedin search results pages but i am not getting any appropriate results, can you please help me out with below code.
'll look forward to hearing from you further, Thanks in advance!
Regards// Rebecca
VERSION BUILD=8850919 RECORDER=FX
TAB T=1
SET !REPLAYSPEED FAST
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
URL GOTO=https://www.linkedin.com/vsearch/f?type=all&keywords=&orig=GLHD&rsid=&pageKey=member-home&trkInfo=&search=Search
TAG POS=1 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=2 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=3 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=4 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=5 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=6 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=7 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=8 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=9 TYPE=H3 ATTR=* EXTRACT=HREF
TAG POS=10 TYPE=H3 ATTR=* EXTRACT=HREF
SAVEAS TYPE=EXTRACT FOLDER=* FILE=results.csv
Try to change your code strings of "TAG POS=... EXTRACT=HREF" with:
TAG POS=1 TYPE=A ATTR=CLASS:profile-photo EXTRACT=HREF
TAG POS=2 TYPE=A ATTR=CLASS:profile-photo EXTRACT=HREF
etc.