How to extract multiple Zip code ?

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
User avatar
haroonah
Posts: 40
Joined: Tue Jun 02, 2015 6:11 am
Location: Duisburg Germany

Re: How to extract multiple Zip code ?

Post by haroonah » Thu Jun 11, 2015 9:38 pm

not clear enough!
Need more information.
Have you tried yourself to make a macro?
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all Versions...
chivracq
Posts: 8199
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How to extract multiple Zip code ?

Post by chivracq » Thu Jun 11, 2015 11:00 pm

bambucea wrote:Hello guys,

I'm new and i don't have so much experience with Imacros
I'm interested to extract Zip code from multiple Url's

example :

Code: Select all

http://www.leboncoin.fr/sports_hobbies/816395453.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/816380402.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/816372272.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/791048430.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/790876320.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/790449050.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/816317300.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/816315059.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/760145051.htm?ca=22_s
http://www.leboncoin.fr/sports_hobbies/765983236.htm?ca=22_s
Anyone can help me please ?
CIM...! :mrgreen:
haroonah wrote:not clear enough!
Need more information.
Have you tried yourself to make a macro?

- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all Versions...
Ah-ah-ah...! Perfect Answer..., I'm starting to like you...! :oops:

Hum..., wondering if I should copyright my Sig or not...!! :twisted:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: How to extract multiple Zip code ?

Post by techimac » Fri Jul 03, 2015 12:01 pm

SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE urls.txt
SET !DATASOURCE_COLUMNS 1
URL GOTO={{!COL1}}
TAG POS=1 TYPE=TD ATTR=itemprop:postalCode EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=* FILE=ZipCode.csv


Place all links in a text file (one link per line) and save as urls.txt
Place text file in Datasources folder of iMacros
Now run the script in loop
Extracted data will be saved in Downloads folder of iMacros
The script will work for the website you have mentioned.
Post Reply