Утилита wget на windows — Установка и настройка!
Приветствую тебя на моем блоге bordyshev.ru! В этой статье мы разберем как установить программу wget на windows и настроить ее. Итак садись поудобнее, мы начинаем)
Скачиваем wget для windows
Для начала чтобы установить wget на виндовс нам нужно его скачать, не так ли? Переходим по этой ссылке и видим что все написано по анг. кто незнает куда жать специально для вас я сделал скриншот.
Download setup wget
Установка wget на windows
После загрузки утилиты wget запустите exe-шник. В самом установщике жмите всегда далее, думаю не промахнетесь:) По умолчанию путь установки программы будет такой — C:\Program Files (x86)\GnuWin32
Запуск утилиты wget
Самое время запускать и тестить ее!) Для этого нам понадобится консоль, вызвать ее можно нажав кнопки на клавиатуре «Win+R» и ввести в окошечке команду «cmd» и перед вами должно открыться нужная нам консоль. В ней мы прописываем вот эту строчку:
path C:\Program Files (x86)\GnuWin32\bin и жмем «Enter»
Или же находим на своем windows саму утилиту wget по этому же адресу и мышкой переносим этот файлик в консоль и жмем «Enter»
Команды wget для windows
Давайте откроем небольшую инструкцию под названием — как скачать сайт целиком на windows!
Я уже писал ранее статью о командах wget и повторю здесь самые основные:
wget -r -k -l 7 -p -E -nc http://site.com/ — скачивает сайт целиком и полностью
-r | — | указывает на то, что нужно рекурсивно переходить по ссылкам на сайте, чтобы скачивать страницы. |
-k | — | используется для того, чтобы wget преобразовал все ссылки в скаченных файлах таким образом, чтобы по ним можно было переходить на локальном компьютере (в автономном режиме). |
-p | — | указывает на то, что нужно загрузить все файлы, которые требуются для отображения страниц (изображения, css и т.д.). |
-l | — | определяет максимальную глубину вложенности страниц, которые wget должен скачать (по умолчанию значение равно 5, в примере мы установили 7). В большинстве случаев сайты имеют страницы с большой степенью вложенности и wget может просто «закопаться», скачивая новые страницы. Чтобы этого не произошло можно использовать параметр -l. |
-E | — | добавлять к загруженным файлам расширение .html. |
-nc | — | при использовании данного параметра существующие файлы не будут перезаписаны. Это удобно, когда нужно продолжить загрузку сайта, прерванную в предыдущий раз. |
Да кстати, иногда wget может ругаться на некоторые сертификаты(самоподписанные например) для этого существует команда:
—no-check-certificate
Куда wget сохраняет файлы в windows
Стандартный путь до скаченных файлов такой — C:\Users\Username\site.com
Ну что же, про мощь и возможности утилиты wget можно рассказывать долго и упорно. Это действительно отличная программа для скачивания файлов и даже полностью сайтов. Сам ей регулярно пользуюсь, и вам советую в ней разобраться!) На этом моя небольшая статья заканчивается, если возникнут вопросы задавайте, буду рад на них ответить! До следующей статьи.
Wget for Windows
Wget: retrieve files from the WWW
Version
Description
GNU Wget is a free network utility to retrieve files from the World Wide Web using HTTP and FTP, the two most widely used Internet protocols. It works non-interactively, thus enabling work in the background, after having logged off.
The recursive retrieval of HTML pages, as well as FTP sites is supported — you can use Wget to make mirrors of archives and home pages, or traverse the web like a WWW robot (Wget understands /robots.txt).
Wget works exceedingly well on slow or unstable connections, keeping getting the document until it is fully retrieved. Re-getting files from where it left off works on servers (both HTTP and FTP) that support it. Matching of wildcards and recursive mirroring of directories are available when retrieving via FTP. Both HTTP and FTP retrievals can be time-stamped, thus Wget can see if the remote file has changed since last retrieval and automatically retrieve the new version if it has.
Wget supports proxy servers, which can lighten the network load, speed up retrieval and provide access behind firewalls. If you are behind a firewall that requires the use of a socks style gateway, you can get the socks library and compile wget with support for socks.
Most of the features are configurable, either through command-line options, or via initialization file .wgetrc. Wget allows you to install a global startup file (etc/wgetrc by default) for site settings.
Homepage
Download
If you download the Setup program of the package, any requirements for running applications, such as dynamic link libraries (DLL’s) from the dependencies as listed below under Requirements, are already included. If you download the package as Zip files, then you must download and install the dependencies zip file yourself. Developer files (header files and libraries) from other packages are however not included; so if you wish to develop your own applications, you must separately install the required packages.
Description | Download | Size | Last change | Md5sum | ||||
---|---|---|---|---|---|---|---|---|
• Complete package, except sources | Setup | 3012464 | 31 December 2008 | b4679ac6f7757b35435ec711c6c8d912 | ||||
• Sources | Setup | 1270850 | 31 December 2008 | 25cb2d164024b3e478c4ab14b89585a9 | ||||
• Binaries | Zip | 850448 | 31 December 2008 | 254b95bd96564eb6db590f2b51f8fd8b | ||||
• Documentation | Zip | 1244187 | 31 December 2008 | acdf67b1d524526199e51a6224c4071f | ||||
• Sources | Zip | 2189442 | 31 December 2008 | ef29b3c8b5708825ca008a3938adb8fd | ||||
• Dependencies | Zip | 1443871 | 4 September 2008 | b23ce98bc2d03f852f8516183c619d42 | ||||
• Original source | http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.gz |
You can also download the files from the GnuWin32 files page. New releases of the port of this package can be monitored.
Wget for windows gnuwin32
GNU Wget
GNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS, the most widely used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.
GNU Wget has many features to make retrieving large files or mirroring entire web or FTP sites easy, including:
- Can resume aborted downloads, using REST and RANGE
- Can use filename wild cards and recursively mirror directories
- NLS-based message files for many different languages
- Optionally converts absolute links in downloaded documents to relative, so that downloaded documents may link to each other locally
- Runs on most UNIX-like operating systems as well as Microsoft Windows
- Supports HTTP proxies
- Supports HTTP cookies
- Supports persistent HTTP connections
- Unattended / background operation
- Uses local file timestamps to determine whether documents need to be re-downloaded when mirroring
- GNU Wget is distributed under the GNU General Public License.
Downloading GNU Wget
The source code for GNU Wget can be found on the main GNU download server or (better) on a GNU mirror near you.
For more download options, see the FAQ.
Documentation
Additional Information
Currently GNU Wget2 is being developed.
Please help us if you can with testing, docs, organization, development, etc. See you at the Wget2 collaboration site.
Maintainer
GNU Wget is currently being maintained by Tim Rühsen, Darshit Shah and Giuseppe Scrivano.
The original author of GNU Wget is Hrvoje Nikšić.
Please do not directly contact either of these individuals with bug reports, or requests for help with Wget: that is what the mailing list is for; please use it instead.
Donators
We thank the TYPO3 & Magento partner AOE media for donating to the Wget project.
“The Free Software Foundation (FSF) is a nonprofit with a worldwide mission to promote computer user freedom. We defend the rights of all software users.”
Please send general FSF & GNU inquiries to . There are also other ways to contact the FSF. Broken links and other corrections or suggestions can be sent to bug-wget@gnu.org.
Please see the Translations README for information on coordinating and contributing translations of this article.
Copyright © 2017 Free Software Foundation, Inc.