Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VBScript to spider a website and list external links

Reply
 
Old 12-12-2008   #1 (permalink)
Keith


 
 

VBScript to spider a website and list external links

Hello,
I need to list all external links on a website of ours. Are there any
snippets of VBScript that can help with this? Just something simple that
will spider the website and drop the links it finds into a txt file. Along
these same lines, what is the vbscript used for spidering a domain name? Any
help would be greatly appreciated.

Thanks.

My System SpecsSystem Spec
Old 12-12-2008   #2 (permalink)
Paul Randall


 
 

Re: VBScript to spider a website and list external links


"Keith" <Keith@xxxxxx> wrote in message
news:CD955493-9C1A-4E35-8A9B-9B17D9E7B17C@xxxxxx
Quote:

> Hello,
> I need to list all external links on a website of ours. Are there any
> snippets of VBScript that can help with this? Just something simple that
> will spider the website and drop the links it finds into a txt file.
> Along
> these same lines, what is the vbscript used for spidering a domain name?
> Any
> help would be greatly appreciated.
>
> Thanks.
I don't know of any such code snippet.
Maybe this will help you to design your own spider.
If you wanted to get a list of all files in a folder and all of its
subfolders, you could use the filesystem object and its folder.files and
folder.subfolders collections to recursively dig your way down through an
initial folder and all its subfolders.

You can use the internetexplorer.application object and its links and images
collections in a manner similar manner to recursively dig your way through
an initial web page and all URLs linked on this initial and subsequent web
pages.

http://msdn.microsoft.com/en-us/library/ms533050.aspx will help you
understand the IE application object model.

Use google.groups.com, specifying the group
microsoft.public.scripting.vbscript, to search for IE related code snippets.

-Paul Randall


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Email from Outlook 2007 with external links (like micrsoft news letter) Microsoft Office
Website email links not working Vista mail
Website email links doesn't work .NET General
Links to Website don't work Vista mail
VBScript to list PST files and their location on a specific drive ona PC to a CSV file VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46