wget not getting my embedded google map???

Armitage

Banned
Feb 23, 2001
8,086
0
0
I'm grabbing a static copy of an internal website to take to a briefing tomorrow. Using wget with the following command line:

wget -r -k -p -E --restrict-file-names=windows url

It's working great, but I have an embedded google map on some of the pages that it isn't grabbing. Then when I load that file later I get a popup warning that the google maps API key isn't valid for the address the request is coming from. Since the demo tomorrow won't be on a network connected machine, I won't even get that - probably some warning about not being able to contact google.

Anyway, the code on the web page for the google map is something like this:

Any ideas on how I can get wget to pull the google maps image? I thought the -p (--page-prerequisites) option would do it, but it's not. I can modify the page source as well if that helps.

edit - well, it looks like the problem is that wget can't run the script. So now I have to figure out some other way to get the map.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Yeah, the javascript would be the issue. Is it acceptable to just get the image by hand, then change the page source to show it?
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Originally posted by: kamper
Yeah, the javascript would be the issue. Is it acceptable to just get the image by hand, then change the page source to show it?

Not really - there are about 1500 unique pages/maps. So I need something automagical.

It's not gonna happen tonight, so I've just stripped out the map - it was pretty much just eye-candy anyway relative to the rest of the content.

Should be interesting - 1 hour of just me, my bosses up the company VP and a 2 star. And I just found out about it at about 10:00 this morning :p