I just made the source for the WebPage Downloader public, you can get it from http://naterocks.com/php-coding/webpage-downloader/.