Moderators: Community Moderators, iMacros Moderators
Candita wrote:I need to search my site for several old URLs so they can be updated. Then, for each URL that's found I need to extract the page URL where it was found and the link text that's displayed. This all needs to be written to a CSV file for review. I'm fairly sure the URL will only appear once on a page and there won't be multiple URLs found on a page, but I can't rule that out. Ideally the macro could read the URLs I'm searching for from an excel or CSV file (in which case I would need the macro to list which URL was found with the other info mentioned above, but I'm willing to search them individually. I've tried checking the example macros, forums and wiki, but I'm having trouble fitting it all together (haven't used iMacros in a loooong time). Help or a point in the right direction is appreciated!
Candita wrote:Thanks, I guess it's obvious I'm really out of practice and not just with iMacros![]()
I've managed to search a single page and save a CSV with:
- Code: Select all
VERSION BUILD=8940826 RECORDER=FX
TAB T=1
URL GOTO=http://www.####.html
'TAG POS=1 TYPE=A ATTR=TXT:Knowledge<SP>Center EXTRACT=HREF
SET !LOOP 1
TAG POS= {{!LOOP}} TYPE=A ATTR=HREF:*[URL pattern I'm searching for]* EXTRACT=TXT
TAG POS= {{!LOOP}} TYPE=A ATTR=HREF:*[URL pattern I'm searching for]* EXTRACT=HREF
SET !EXTRACTADD {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=SUPPORT-EXTRACT
I'm not seeing how to search the entire site or how to search each page until the pattern is not found, then move to another page. This also reloads the page each time, which seems inefficient.
=> iMacros for FF v8.9.4, FF...?, OS...?
Candita wrote:Sorry to have bothered you. Please delete my posts and account. I'll find another solution.
Return to Data Extraction and Web Screen Scraping
Users browsing this forum: No registered users and 2 guests