Html 如何从亚马逊缩放窗口获取完整的分辨率图像
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9486900/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to get a full res image from an amazon zoom window
提问by mheavers
I started this just to use as an internal reference for a project, and now I'm kind of obsessed with it - Amazon uses a zoom plugin to slice up a large image into pieces, and each piece is an image:
我开始这只是为了用作项目的内部参考,现在我有点痴迷于它 - 亚马逊使用缩放插件将大图像切成片,每片都是一个图像:
http://www.amazon.com/gp/product/images/0714859583/ref=dp_otherviews_z_5?ie=UTF8&s=books&img=5
http://www.amazon.com/gp/product/images/0714859583/ref=dp_otherviews_z_5?ie=UTF8&s=books&img=5
but I figure somewhere there has to be a full, high-res image that is not sliced up. Anyone know how to grab this? I can get a small one and I can get all the large pieces, but I want to get the complete large image.
但我认为某处必须有一个完整的、高分辨率的图像,没有被切碎。有谁知道怎么抓这个?我可以得到一个小的,我可以得到所有的大块,但我想得到完整的大图像。
采纳答案by Roopak Venkatakrishnan
with a bit of googling, firebug work and reading some other posts this is what ive figured
通过一些谷歌搜索,萤火虫工作和阅读其他一些帖子,这就是我认为的
one of the parts of the big image u mentioned is
你提到的大图像的一部分是
http://z2-ec2.images-amazon.com/R/1/a=0714859583+d=_SCR(2,3,3)_+o=01+s=RMTILE+va=MAIN+ve=196021930+e=.jpg
http://z2-ec2.images-amazon.com/R/1/a=0714859583+d=_SCR(2,3,3)_+o=01+s=RMTILE+va=MAIN+ve=196021930+e=.jpg
and the original big image is
原来的大图是
http://z2-ec2.images-amazon.com/images/P/0714859583.01._SX_SCRMZZZZZZZ_V196021930_.jpg
http://z2-ec2.images-amazon.com/images/P/0714859583.01._SX_SCRMZZZZZZZ_V196021930_.jpg
so to follow this to find out for all images the algorithm u have to follow is
所以要按照这个找出所有图像,你必须遵循的算法是
- first part - http://z2-ec2.images-amazon.com/images/P/
- then the part following a=
- delete everything following d=
- followed by '.' then value following o= then '.'
- followed by _SX_SCRMZZZZZZZ_V
- followed by the part following ve= followed by _.jpg
- 第一部分 - http://z2-ec2.images-amazon.com/images/P/
- 那么 a= 后面的部分
- 删除 d= 之后的所有内容
- 其次是 '。' 然后值跟随 o= 然后 '.'
- 其次是_SX_SCRMZZZZZZZ_V
- 后面跟着 ve= 后面的部分,后面跟着 _.jpg
does that make any sense???
这有任何意义吗???
回答by Clifford Daniels
Took me an hour of tinkering till I found an easy solution:
花了我一个小时的修补,直到我找到一个简单的解决方案:
- Go to the Amazon page of the item you want an image for.
- Press ctrl U
- Press ctrl F
- Search "hiRes"
- Copy and paste the links that come up next to "hiRes": until you find the image you're looking for. It should only take a few attempts to find the image you want.
- On this new page, right click on the image and click "Save Image As". The pic is now yours!
- 转到您想要图片的商品的亚马逊页面。
- 按 ctrl U
- 按 ctrl F
- 搜索“hiRes”
- 复制并粘贴“hiRes”旁边的链接:直到找到您要查找的图像。只需尝试几次即可找到您想要的图像。
- 在这个新页面上,右键单击图像,然后单击“将图像另存为”。照片现在是你的了!
Example:
例子:
- Amazon item page: http://www.amazon.com/Carhartt-Thermal-Active-Hymanet-J131/dp/B002G9U8A0/ref=cts_ap_1_fbt
- Pressed ctrl U
- Pressed ctrl F
- Searched "hiRes"
- The third "hiRes" down, I found a link like this: "hiRes":"http://ecx.images-amazon.com/images/I/81OjsM9ITDL.UL1500.jpg". Copied and pasted the link into my browser (sans quotation marks).
- Saved image onto my computer!
- 亚马逊商品页面:http: //www.amazon.com/Carhartt-Thermal-Active-Hymanet-J131/dp/B002G9U8A0/ref=cts_ap_1_fbt
- 按下 ctrl U
- 按下 ctrl F
- 搜索“hiRes”
- 第三个“聘用”了下来,我发现像这样的链接:“雇用”:“ http://ecx.images-amazon.com/images/I/81OjsM9ITDL UL1500.JPG”。将链接复制并粘贴到我的浏览器中(无引号)。
- 将图像保存到我的电脑上!
回答by Subbu
There is an easier way. Right click (ctrl+click on mac) on the smaller image, the context-menu opens up along with the bigger zoomed image. With the context-menu still open, right-click on the zoomed image (at this point the zoom image disappears, don't worry we don't need it) and select "Save Image As" and save the image.
有一个更简单的方法。在较小的图像上右键单击(在 mac 上按 ctrl+单击),上下文菜单与较大的缩放图像一起打开。在上下文菜单仍然打开的情况下,右键单击缩放图像(此时缩放图像消失了,别担心我们不需要它)并选择“将图像另存为”并保存图像。
The trick here is, the zoomed image disappears only when there is some activity on the web page like mouse movement or mouse clicks. When context menu is open web page contents don't change even if you move the mouse. They are not captured by the web page as long as the context-menu is still open. If you right click on the zoomed image while the context-menu is still open, the zoomed image disappears but the image reference is already captured by the context-menu of second right click.
这里的诀窍是,只有在网页上有一些活动(如鼠标移动或鼠标点击)时,放大的图像才会消失。当上下文菜单打开时,即使您移动鼠标,网页内容也不会改变。只要上下文菜单仍然打开,它们就不会被网页捕获。如果在上下文菜单仍然打开时右键单击缩放图像,缩放图像会消失,但图像参考已经被第二次右键单击的上下文菜单捕获。
回答by Jay Marz
There's a new and simpliest way to do this.
If you have fetched the url
of the normal/small image, like this
有一种新的、最简单的方法可以做到这一点。如果你已经获取了url
正常/小图像的,像这样
http://ecx.images-amazon.com/images/I/61Z2sXctnLL.SX466.jpg
http://ecx.images-amazon.com/images/I/61Z2sXctnLL。SX466.JPG
Just replace the SX466
with SL1500
to make it like this
只需更换SX466
与SL1500
使它像这样
http://ecx.images-amazon.com/images/I/61Z2sXctnLL.SL1500.jpg
http://ecx.images-amazon.com/images/I/61Z2sXctnLL。SL1500.jpg
回答by Trevor Robinson
This is way off topic for SO, but since I had the same question, here's an answer for how to grab them easily.
这对于 SO 来说是离题的,但由于我有同样的问题,这里有一个关于如何轻松抓住它们的答案。
There's a Firefox app for that: https://addons.mozilla.org/en-us/firefox/addon/azid-amazon-zoom-image-downloa/
有一个 Firefox 应用程序:https: //addons.mozilla.org/en-us/firefox/addon/azid-amazon-zoom-image-downloa/
回答by w3debugger
- open firebug
- hover on image and when zoom apears, go to firebug window without hover any other object
- find the class="zoomWindow" on the bottom of html source
- 打开萤火虫
- 悬停在图像上,当缩放出现时,转到萤火虫窗口而不悬停任何其他对象
- 在 html 源代码底部找到 class="zoomWindow"
e.g.
例如
div id="zoomWindow"
- copy the link of img src
- 复制img src的链接
e.g.
例如
img id="detailImg" src="http://ecx.images-amazon.com/images/I/81nDa%2Bg17vL._SL1500_.jpg" /
copy http://ecx.images-amazon.com/images/I/81nDa%2Bg17vL._SL1500_.jpg
- paste in new tab
- 粘贴到新标签中
thats it
就是这样
回答by betelgeuse
Amazon hi-res image cotains Merchant ID, it is complicated.
I made a bookmarklet to save Amazon Images.Please try it, and look image's URL.
ttp://parasiteeve2.blog65.fc2.com/blog-entry-1017.html
亚马逊高分辨率图片包含商家ID,很复杂。
我制作了一个书签来保存亚马逊图片。请尝试一下,并查看图片的 URL。ttp://parasiteeve2.blog65.fc2.com/blog-entry-1017.html
Example,
Thriller(Amazon MP3) image,
B0013D6LEM(ASIN).01(country U.S.)-A17SFUTIVB227Z(Merchant ID).MAIN. ,
Marchant ID cannot be omitted.
例如,
Thriller(Amazon MP3) 图像,
B0013D6LEM(ASIN).01(美国国家/地区)-A17SFUTIVB227Z(商家 ID)。MAIN。,
Marchant ID 不能省略。
Michael Hymanson(Kindle Store) image,
B005WU9RNO(ASIN).01(country U.S.).MAIN. ,
Merchant ID is omittable.
Michael Hymanson(Kindle Store) 图像,
B005WU9RNO(ASIN).01(country US).MAIN。,
商户号可省略。
回答by vinceon
Some image downloader in Chrome extension able to 'sniff' to download the full res image. ;)
Chrome 扩展程序中的某些图像下载器能够“嗅探”以下载完整的 res 图像。;)