How to extract & save all text with similar html tags - imacros

faizzsheikh

New Member
Joined
May 10, 2013
Messages
19
How can I extract all text associated with similar html tags? Because currently it enters POS=1 and only one text is saved. If you check/run the below script you will understand what I mean.

I know that by adding POS=2, POS=3 and so on I can extract the complete data, but that will become very tedious since I have too many zip codes to input & every zip code have different number of results.

Thanks for your help in advance!

Code:
[/COLOR][COLOR=#333333]VERSION BUILD=10022823[/COLOR]
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit;">SET !EXTRACT_TEST_POPUP NO
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.promotionalproductswork.org/promotional-consultant-locator.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:aspnetForm ATTR=NAME:ctl00$PlaceHolderMain$locatetext CONTENT=89123
TAG POS=1 TYPE=SELECT FORM=NAME:aspnetForm ATTR=NAME:ctl00$PlaceHolderMain$locatewithin CONTENT=%100
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:aspnetForm ATTR=NAME:ctl00$PlaceHolderMain$locatesubmit
TAG POS=1 TYPE=SPAN ATTR=CLASS:street-address EXTRACT=TXT
TAG POS=1 TYPE=SPAN ATTR=CLASS:postal-code EXTRACT=TXT
TAG POS=1 TYPE=SPAN ATTR=CLASS:region EXTRACT=TXT
TAG POS=1 TYPE=SPAN ATTR=CLASS:locality EXTRACT=TXT
TAG POS=1 TYPE=A ATTR=CLASS:email EXTRACT=TXT
TAG POS=1 TYPE=SPAN ATTR=CLASS:tel EXTRACT=TXT </code>[COLOR=#333333]SAVEAS TYPE=EXTRACT FOLDER=* FILE=testing.CSV[/COLOR][COLOR=#333333]
 
No Answer? :(

I don't think its and invalid question for this forum, there are many discussions already related to imacros.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top