0

我有一个问题:我想从这个网站下载图片:

http://www.oasidelleanime.com/minisiti/raccontastorie/Fascicolo1/index.htm

我可以保存页面,但有一个问题:您在我链接的页面中看到的图像只是缩略图。我需要下载“真实”图像,即单击缩略图时打开的图像。我的问题是:我可以使用任何脚本,这样我就不必手动打开所有图像(这很痛苦,说实话)?

我最好的问候, 亚历山德罗

4

1 回答 1

0

如果您通过脚本表示 javascript,那么简短的答案是否定的。这是因为一个称为跨站点脚本的安全漏洞。维基百科有一篇关于它的文章,见 http://en.wikipedia.org/wiki/Cross-site_scripting

但是可以使用 wget 下载带有 shellscript 的图像。以下脚本可能有效:

#! /bin/bash
# use this script for downloading websites using 'wget' utility
# replace URL field with the URL to be downloaded

URL="$1"

wget -Nrkpl 0 $URL

# wget flags and their functions
# -r = recursive: follows the links
# -k = changes links adresses to their local file adress
# -p = downloads images
# -l = recursion level. 0 for infinite.
于 2013-03-14T11:39:28.857 回答