﻿define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/head &#187; get</title>
	<atom:link href="http://devhead.ru/cat/get/feed" rel="self" type="application/rss+xml" />
	<link>http://devhead.ru</link>
	<description>Статьи и видео уроки</description>
	<lastBuildDate>Mon, 30 Jan 2017 11:12:34 +0000</lastBuildDate>
	<language>ru-RU</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.37</generator>
	<item>
		<title>Небольшое введение в wget</title>
		<link>http://devhead.ru/read/nebolshoe-vvedenie-v-wget</link>
		<comments>http://devhead.ru/read/nebolshoe-vvedenie-v-wget#comments</comments>
		<pubDate>Fri, 19 Nov 2010 08:19:17 +0000</pubDate>
		<dc:creator><![CDATA[Аноним]]></dc:creator>
				<category><![CDATA[Статьи]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[сеть]]></category>

		<guid isPermaLink="false">http://devhead.ru/read/nebolshoe-vvedenie-v-wget/</guid>
		<description><![CDATA[Wget — свободная не-интерактивная консольная программа для загрузки файлов по сети. Поддерживает протоколы HTTP, FTP и HTTPS, а также поддерживает работу через HTTP прокси-сервер. Скажу по своему опыту, что использовать консольный wget порой удобнее чем всякие GUI, и для полноценной работы, нужно осилить десяток ключей и это вам сильно упростит жизнь. Приведу несколько примеров: Загрузка [&#8230;]]]></description>
				<content:encoded><![CDATA[<div><strong>Wget</strong> — свободная не-интерактивная консольная программа для загрузки файлов по сети. Поддерживает протоколы HTTP, FTP и HTTPS, а также поддерживает работу через HTTP прокси-сервер.</div>
<div>Скажу по своему опыту, что использовать консольный wget порой удобнее чем всякие GUI, и для полноценной работы, нужно осилить десяток ключей и это вам сильно упростит жизнь.</div>
<div><span id="more-709"></span></div>
<div><strong>Приведу несколько примеров:</strong></div>
<p>Загрузка всех URL, указанных в файле FILE:</p>
<blockquote>
<div>wget -i FILE</div>
</blockquote>
<p>Скачивание файла в указанный каталог (-P)[4]:</p>
<blockquote>
<div>wget -P /path/for/save <a href="ftp://ftp.example.org/some_file.iso" class="external free" title="ftp://ftp.example.org/some_file.iso" rel="nofollow">ftp://ftp.example.org/some_file.iso</a></div>
</blockquote>
<p>Скачивание в фоновом режиме (-b):</p>
<blockquote>
<div>wget -b <a href="ftp://ftp.example.org/some_file.iso" class="external free" title="ftp://ftp.example.org/some_file.iso" rel="nofollow">ftp://ftp.example.org/some_file.iso</a></div>
</blockquote>
<p>Продолжить (-c continue) загрузку ранее не полностью загруженного файла:</p>
<blockquote>
<div>wget -c <a href="http://example.org/file.iso" class="external free" title="http://example.org/file.iso" rel="nofollow">http://example.org/file.iso</a></div>
</blockquote>
<p>Скачать страницу с глубиной следования 10, записывая протокол в файл log:</p>
<blockquote>
<div>wget -r -l10 <a href="http://example.org/" class="external free" title="http://example.org/" rel="nofollow">http://example.org/</a> -o log</div>
</blockquote>
<p>Скачать содержимое каталога <a href="http://example.org/%7Eluzer/my-archive/" class="external free" title="http://example.org/~luzer/my-archive/" rel="nofollow">http://example.org/~luzer/my-archive/</a> и всех его подкаталогов, при этом не поднимаясь по иерархии каталогов выше:</p>
<blockquote>
<div>wget -r --no-parent <a href="http://example.org/%7Eluzer/my-archive/" class="external free" title="http://example.org/~luzer/my-archive/" rel="nofollow">http://example.org/~luzer/my-archive/</a></div>
</blockquote>
<p>Для того, чтобы во всех скачанных страницах ссылки преобразовывались в  относительные для локального просмотра, необходимо использовать ключ  -k:</p>
<blockquote>
<div>wget -r -l10 -k <a href="http://example.org/" class="external free" title="http://example.org/" rel="nofollow">http://example.org/</a></div>
</blockquote>
<p>Также поддерживается идентификация на сервере:</p>
<blockquote>
<div>wget --save-cookies cookies.txt --post-data 'user=foo&amp;password=bar' <a href="http://example.org/auth.php" class="external free" title="http://example.org/auth.php" rel="nofollow">http://example.org/auth.php</a></div>
</blockquote>
<p>Скопировать весь сайт целиком:</p>
<blockquote>
<div>wget -r -l 0 -k <a href="http://example.org/" class="external free" title="http://example.org/" rel="nofollow">http://example.org/</a></div>
</blockquote>
<p><strong><span class="mw-headline">Ссылки:</span></strong></p>
<p><a href="http://linuxland.itam.nsc.ru/book/linux15/typ_wget.ru.html" class="external free" title="http://linuxland.itam.nsc.ru/book/linux15/typ_wget.ru.html" rel="nofollow">http://linuxland.itam.nsc.ru/book/linux15/typ_wget.ru.html</a> <br /> <a href="http://hack-expo.void.ru/groups/sds/html%20and%20txt/wget.html" class="external free" title="http://hack-expo.void.ru/groups/sds/html%20and%20txt/wget.html" rel="nofollow">http://hack-expo.void.ru/groups/sds/html%20and%20txt/wget.html</a> <br /> <a href="http://ru.wikipedia.org/wiki/Wget" class="external free" title="http://ru.wikipedia.org/wiki/Wget" rel="nofollow">http://ru.wikipedia.org/wiki/Wget</a></p>
]]></content:encoded>
			<wfw:commentRss>http://devhead.ru/read/nebolshoe-vvedenie-v-wget/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->