[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] download inline elements from remote hosts (page requisit
From: |
Paul Wratt |
Subject: |
Re: [Bug-wget] download inline elements from remote hosts (page requisites) |
Date: |
Wed, 4 Jan 2012 23:53:51 +1300 |
yeah I am interested in it - what are the repercussions of not having
an option for this...
1) you cant turn it off
2) ..
host limiting should still work tho
also note that you can no longer use --convert-links if you require
--no-clobber and a valid windows filename (cant update mirror)
Paul
On Fri, Dec 30, 2011 at 1:59 AM, Jonas Gasser <address@hidden> wrote:
> Hello everybody
>
> As I use wget quite often for mirrors, it's very annoying to be limited to
> the host for inline elements (without the span-host option).
> So I modified recur.c with 2-3 lines
>
> /* 7. */
> if (schemes_are_similar_p (u->scheme, parent->scheme)) {
> if (!opt.spanhost && 0 != strcasecmp (parent->host, u->host))
> {
> if (!(opt.page_requisites && upos->link_inline_p))
> {
> DEBUGP (("This is not the same hostname as the parent's (%s and %s).\n",
> u->host, parent->host));
> goto out;
> }
> }
> }
> /* 8. */
>
> and I use it like:
>
> $ ./wget --output-file=test.log -k -E -K --no-check-certificate -p -e
> robots=off -m URL
>
> First tests are done (simple examples - inline images and iframes included
> from amazon) and seem to work.
> My question : Is there interest in this and would an additional option be the
> better way?
>
>
> Greets from Switzerland, Jonas
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug-wget] download inline elements from remote hosts (page requisites),
Paul Wratt <=