Extract links in separate lines

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
reus
Posts: 2
Joined: Sun Dec 04, 2016 4:14 pm

Extract links in separate lines

Post by reus » Wed May 10, 2017 9:04 am

Hello, how to save in file one link per line?

Code: Select all

SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=CLASS:marginr EXTRACT=HREF
TAG POS=2 TYPE=A ATTR=CLASS:marginr EXTRACT=HREF
WAIT SECONDS=1
SAVEAS TYPE=EXTRACT FOLDER=D:\ FILE=links.txt
imacros 9.0.3, firefox, windows10 64
chivracq
Posts: 9374
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Extract links in separate lines

Post by chivracq » Wed May 10, 2017 9:53 am

reus wrote:Hello, how to save in file one link per line?

Code: Select all

SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=CLASS:marginr EXTRACT=HREF
TAG POS=2 TYPE=A ATTR=CLASS:marginr EXTRACT=HREF
WAIT SECONDS=1
SAVEAS TYPE=EXTRACT FOLDER=D:\ FILE=links.txt
imacros 9.0.3, firefox, windows10 64
Oh...!, very good, you now mention your FCI...!, even if hum..., FF Version is still missing... => FF53...?

But, hum..., your previous Thread still needs the same Info like I asked you and has been waiting since Decb 2016 for some Follow-up from your Side... You first need to follow up on (all) your previous Thread(s) and finish it/them "neatly" (by sharing your Solution) for me to want to help you (again) in this one... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply