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!
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]