Save links

Hi everybody,
i posted a similar thing a few weeks ago. But I believe there must be
someone who can help me. Maybe I described my problem not exactly.
Okay I want to save links from an opened Internet Explorer site to a file.
Say you have searched something in google and you want to save all the links
listed on this page to a file. It’s pretty like a download manager when you
choose the leech function and it displays you all the links on the page.
Except the fact, that I want to save these links to a file. I thought about
Win32API to solve the problem, but by now I didn’t find a solution. Can
anybody help me?
Thanks in advance…

Hi everybody,
i posted a similar thing a few weeks ago. But I believe there must be
someone who can help me. Maybe I described my problem not exactly.
Okay I want to save links from an opened Internet Explorer site to a file.
Say you have searched something in google and you want to save all the links
listed on this page to a file. It’s pretty like a download manager when you
choose the leech function and it displays you all the links on the page.
Except the fact, that I want to save these links to a file. I thought about
Win32API to solve the problem, but by now I didn’t find a solution. Can
anybody help me?

Um, do you mean you want a end up with a text file containing a list of all the
links, or do you want to get copies of the web sites (perhaps to some arbitrary
depth) pointed to by the set of links?

James

···

Thanks in advance…

How about using win32ole?

require ‘win32ole’
ie = WIN32OLE.new(‘InternetExplorer.Application’)
ie.visible = true
ie.Navigate(‘http://www.ruby-lang.org/’)
while ie.Busy do $stderr.puts “waiting…” end # WIN32OLE_EVENT?
ie.Document.links.each { |link| puts link.toString }

But, I don’t know how to access an already opened browser window.

ie = WIN32OLE.connect(‘InternetExplorer.Application’)
ie.LocationUrl #=> “file:///C:/MyDrive/MyScripts”
# It’s my script’s working folder, not web page!

···

On Sat, 16 Nov 2002 18:12:49 +0100 “Basti S” basti.steiner@gmx.de wrote:

Okay I want to save links from an opened Internet Explorer site to a file.
Say you have searched something in google and you want to save all the links
listed on this page to a file. It’s pretty like a download manager when you
choose the leech function and it displays you all the links on the page.
Except the fact, that I want to save these links to a file. I thought about
Win32API to solve the problem, but by now I didn’t find a solution. Can
anybody help me?


Shusaku tsyk@yk.rim.or.jp

Thanks a lot,
that really gave me the right impression. I think i can get it with this
information.

“Shusaku” tsyk@yk.rim.or.jp wrote in message
news:20021117072525.CA77.TSYK@yk.rim.or.jp…

Okay I want to save links from an opened Internet Explorer site to a
file.
Say you have searched something in google and you want to save all the
links
listed on this page to a file. It’s pretty like a download manager when
you
choose the leech function and it displays you all the links on the page.
Except the fact, that I want to save these links to a file. I thought
about

···

On Sat, 16 Nov 2002 18:12:49 +0100 > “Basti S” basti.steiner@gmx.de wrote:

Win32API to solve the problem, but by now I didn’t find a solution. Can
anybody help me?

How about using win32ole?

require ‘win32ole’
ie = WIN32OLE.new(‘InternetExplorer.Application’)
ie.visible = true
ie.Navigate(‘http://www.ruby-lang.org/’)
while ie.Busy do $stderr.puts “waiting…” end # WIN32OLE_EVENT?
ie.Document.links.each { |link| puts link.toString }

But, I don’t know how to access an already opened browser window.

ie = WIN32OLE.connect(‘InternetExplorer.Application’)
ie.LocationUrl #=> “file:///C:/MyDrive/MyScripts”
# It’s my script’s working folder, not web page!


Shusaku tsyk@yk.rim.or.jp