<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Web-Scraping on HeidelSec</title><link>https://heidelsec.de/en/tags/web-scraping/</link><description>Recent content in Web-Scraping on HeidelSec</description><image><title>HeidelSec</title><url>https://heidelsec.de/images/og.jpg</url><link>https://heidelsec.de/images/og.jpg</link></image><generator>Hugo -- 0.167.0</generator><language>en</language><copyright>2026 Imprint - Privacy Policy</copyright><lastBuildDate>Fri, 08 Nov 2024 15:30:00 +0100</lastBuildDate><atom:link href="https://heidelsec.de/en/tags/web-scraping/index.xml" rel="self" type="application/rss+xml"/><item><title>Download a Complete Website with wget</title><link>https://heidelsec.de/en/posts/2024-11-08-wget-mirror-website/</link><pubDate>Fri, 08 Nov 2024 15:30:00 +0100</pubDate><guid>https://heidelsec.de/en/posts/2024-11-08-wget-mirror-website/</guid><description>&lt;h2 id="saving-a-website-for-offline-use"&gt;Saving a Website for Offline Use&lt;/h2&gt;
&lt;p&gt;Using &lt;code&gt;wget&lt;/code&gt;, you can download an entire website for offline access with this command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -rkpNc -e &lt;span class="nv"&gt;robots&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;off http://www.example.com/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="parameters-explained"&gt;Parameters Explained&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;-r&lt;/code&gt;&lt;/strong&gt;: Download pages recursively.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;-k&lt;/code&gt;&lt;/strong&gt;: Adjust links for local viewing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;-p&lt;/code&gt;&lt;/strong&gt;: Fetch all resources (images, scripts).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;-N&lt;/code&gt;&lt;/strong&gt;: Only download new or modified files.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;-e robots=off&lt;/code&gt;&lt;/strong&gt;: Ignore &lt;code&gt;robots.txt&lt;/code&gt; restrictions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;-c&lt;/code&gt;&lt;/strong&gt;: Continue the download if interrupted.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With this command, &lt;code&gt;wget&lt;/code&gt; reliably saves the entire site for offline use.&lt;/p&gt;</description></item></channel></rss>