Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate saving a web page?

Status
Not open for further replies.

gtjr92

Programmer
May 26, 2004
96
I want to create a VB.net script that will save a web site to a file. How can i do this? I actually will want to save several pages. This would be a weekly job. I know how to create jobs in job scheduler.
I don't know how to do the VB.
I know one way would be to use httpwebrequest and response but not sure how.

The Vb would direct my IE browser to a site then in IE it would save the file to a particular folder as "HTM web file only". (The default file save is a "web page complete" I don't want that) Then I need to dynamically name the file, otherwise they will all be named the same thing.
I was thinking maybe there is a way to create some sort of macro even?
Help is greatly appreciated
 
The easiest route would probrably be using the IE 6 save web page function. Then save them to a folder with the date in the name. Trying to download the page and parse out file names to grab the css, js, images, etc, would be a royal pita. Not sure if there's a way to control IE 6 like that through code, but a simple windows macro could do it. although then you have all the downsides of a macro.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top