1426
Post New Requests Here / Re: Transform list of url links to copies of the actual web pages
« Last post by 4wd on March 17, 2016, 08:05 AM »In Powershell:
Change paths to suit, (ie. the K:\).
NOTE: Media content, (images, etc), if fetched from other sites will not be downloaded, you'll just have the URI link - it'll still work when viewed in a browser, the content will be fetched from the external site as needed, just like when viewing the original page. Actually, all that's downloaded is the page source since that's all a HTML file is - plain text.
Code: PowerShell [Select]
- $urls = Get-Content K:\sites.txt
- for($i=0; $i -lt $urls.Count; $i++) {
- $client = new-object System.Net.WebClient
- $client.DownloadFile( $urls[$i], "k:\Site_" + $i + ".html")
- }
Change paths to suit, (ie. the K:\).
NOTE: Media content, (images, etc), if fetched from other sites will not be downloaded, you'll just have the URI link - it'll still work when viewed in a browser, the content will be fetched from the external site as needed, just like when viewing the original page. Actually, all that's downloaded is the page source since that's all a HTML file is - plain text.

Recent Posts


