[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wget - остаться в рамках домена



Nicholas wrote:
wget при скачке сайтов целиком (mirror) захватывает по одной
странице/картинке из других доменов, трафика это не занимает, но
приходится потом вручную ненужное чистить.

Limit spanning to certain domains--`-D'
    The `-D' option allows you to specify the domains that will be
    followed, thus limiting the recursion only to the hosts that
    belong to these domains.  Obviously, this makes sense only in
    conjunction with `-H'.  A typical example would be downloading the
    contents of `www.server.com', but allowing downloads from
    `images.server.com', etc.:

         wget -rH -Dserver.com http://www.server.com/

    You can specify more than one address by separating them with a
    comma, e.g. `-Ddomain1.com,domain2.com'.


Reply to: