PDA

View Full Version : Internet Explorer used to have this feature...



OC
04-14-2003, 03:25 PM
... where you could create a list of links on a web page and export them to a file. I have a huge project I'm working on and I *MUST* be able to do that, or come up with some alternative.

Here's a description of the project:

I have a list of about 30 web pages. Each of those pages has 100+ links that I need to have in a list. All of these links begin the same way - http://this.is.the.link/XXXXX.htm, where XXXXX is a number.

Any scripts I could use, or apps that you know of that could do what I need? Understand that I simply do *not* have a head for scripting, so anything like that will have to be explained very clearly. :)

Does Mozilla or Opera have this function? I'm at work and can't check...

tia

-OC

Paymaster
04-14-2003, 06:17 PM
This is extremely non-elegant, but will do the trick if you are not a scripter. (If you were, I would point you to the perl HTTP "get" function. Very slick.)

1) Install PERL.
http://www.activestate.com/Products/ActivePerl/

2) Save the web page to a file. (web_page.txt)

3) Execute this command on that file. Redirect it to an output file if required.


perl -ne 'print "$1\n" while (s/(http:\/\/this\.is\.the\.link\/\d+\.htm)//i);' web_page.txt

Let me know how it goes.

Joshua
04-15-2003, 07:48 AM
I assume that adding them to your favorites and exporting them is not an option?

OC
04-15-2003, 08:16 AM
Originally posted by SnotRocket
I assume that adding them to your favorites and exporting them is not an option? No. We're talking over 1500 links, and I need to save each of those web pages to my computer. I have an app that can do that part, I just need to get the big link list created so I can import it.

-OC