Page 1 of 1

How to obtain HTML files through a script

Posted: Sat Dec 13, 2008 11:20 pm
by Stacks
I want to make a local copy of a website filled with articles.

I know I can do this by browsing to the website then saving the temporary internet files.

I want to automate this process through a script rather then doing it manually. Can someone please point me in the right direction. I'm not asking for you to tell me how to do this, but I'm wondering where to start.

I'm a C# business application developer so I'm not sure how one would do this. PHP is still quite new to me.

Thanks for any advice.

Re: How to obtain HTML files through a script

Posted: Sun Dec 14, 2008 5:12 am
by jaoudestudios
You dont even have to use php. Linux has this built in already. Are you familiar with linux command line? If not there might be a GUI for it. But the command you want is wget.

Re: How to obtain HTML files through a script

Posted: Sun Dec 14, 2008 1:22 pm
by Stacks
Thank you. I'm a linux newbie but I do have fedora installed on my laptop. I will give this a try. I'm also curious for my own reference how to do this through php. I figure I'd send a http header to the web server, and I will get a response back. Is the html contained in the response? I haven't had time to experiment but hopefully I'll get this figured out sooner or later.