我编写了一个Ruby脚本来抓取SFMOMA artwork pages并下载图片.jpgs。我设法在底部下载.jpg缩略图,但我更愿意下载高分辨率中心图像。不幸的是,HTML源代码没有显示我可以下载的任何.jpg文件。我怀疑是Seadragon。
我找到的壁橱.jpg近似值是og:image .jpg,但它被严重裁剪而无法使用。
示例: https://www.sfmoma.org/artwork/91.412
<meta property="og:image" content="https://s3-us-west-2.amazonaws.com/sfmomamedia/media/t/collection_images/6OhBqTH57yLc.jpg">
Seadragon渲染的大部分似乎都出现在这里。它似乎是在动态创建图像?
<script type="text/javascript">
var viewer;
$(document).ready(function(){
sfmoma.artwork();
viewer = OpenSeadragon({
id: "zoom_image",
springStiffness: 10.5,
gestureSettingsMouse:{
scrollToZoom: false
},
zoomInButton: "zoom-in",
zoomOutButton: "zoom-out",
homeButton: "zoom-home",
prefixUrl: "https://s3-us-west-2.amazonaws.com/sfmomamedia/static/sfmoma/js/openseadragon/built-openseadragon/openseadragon/images/",
visibilityRatio: 0.95,
constrainDuringPan: true,
tileSources: "https://s3-us-west-2.amazonaws.com/sfmomamedia/media/zoom_tiles/72598/image.dzi"
});
});
</script>
我应该如何下载中心部分图像?告诉抓取工具右键单击并另存为?