How Save only the URL of a visited page

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

How Save only the URL of a visited page

by att on Tue Aug 19, 2008 7:47 am

Hi all,
This is a very nice tool. Been reading, couldn't find the answer to the below.

SET !ERRORIGNORE YES
SET !DATASOURCE sites.csv
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO={{!COL1}}
PAUSE

Is there a way to write the already visited URL to an output file (for example visited_sites.csv) ?
I just need to save the visited URL !, I am using FF, on a Fedora box.
Thanks for any help.
ATT
How to configure Cisco Routers
www.ittrainingexpert.info
att
 
Posts: 24
Joined: Tue Aug 19, 2008 7:22 am

Re: How Save only the URL of a visited page

by BrianR on Tue Aug 19, 2008 7:49 am

SET !EXTRACTADD {{!URLCURRENT}}
BrianR
 
Posts: 126
Joined: Wed Jun 11, 2008 9:13 am

Re: How Save only the URL of a visited page

by att on Tue Aug 19, 2008 8:10 am

Thanks very much Brian,
How would I go about writing this to a .csv ?
I've tried
SAVEAS TYPE=MHT FOLDER=/root/Desktop/imacro FILE=+{{!NOW:ddmmyyyy}}
SAVEAS TYPE=MHT FOLDER=/root/Desktop/imacro FILE=homepage_current
SAVEAS TYPE=HTM FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}

none of them seem to work !.
Thanks for your help
ATT
How to configure Cisco Routers
www.ittrainingexpert.info
att
 
Posts: 24
Joined: Tue Aug 19, 2008 7:22 am

Re: How Save only the URL of a visited page

by BrianR on Tue Aug 19, 2008 8:17 am

SAVEAS TYPE=EXTRACT FOLDER=c:\ FILE=URL.CSV

This will save the information saved with "SET !EXTRACTADD {{!URLCURRENT}}" into the file C:\URL.csv.

Hope this helps.

Brian
BrianR
 
Posts: 126
Joined: Wed Jun 11, 2008 9:13 am

Re: How Save only the URL of a visited page

by att on Tue Aug 19, 2008 8:38 am

Thanks very much Brian,
It's the perfect solution, I thought “SAVEAS TYPE=EXTRACT” would write a lot of information !
This is perfect.
Thanks.
ATT
How to configure Cisco Routers
www.ittrainingexpert.info
att
 
Posts: 24
Joined: Tue Aug 19, 2008 7:22 am

Re: How Save only the URL of a visited page

by Tech Support on Tue Oct 28, 2008 6:36 am

Note: Instead of
SET !EXTRACTADD {{!URLCURRENT}}

please use

ADD !EXTRACT {{!URLCURRENT}}.

This does exactly the same, but the EXTRACTADD command is deprecated and should be avoided for new macros.
User avatar
Tech Support
 
Posts: 5003
Joined: Tue Sep 20, 2005 12:25 pm

Re: How Save only the URL of a visited page

by marco89thebest on Thu Jan 16, 2014 11:45 pm

If I link to add more than one link in a CSV file?

I have to add more link in the same file in a column. Is possibile to do something like this?

EDIT: It works and I didn't touch anything! :)
marco89thebest
 
Posts: 10
Joined: Sat Jan 11, 2014 3:06 pm


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 4 guests

-->