How to crawl a large Amazon map

Source: Internet
Author: User

https://www.douban.com/note/277033391/

Enter to Japan Amazon to see a preview of certain items can be magnified, when you want to right-click on the download and found only a blank map or white edges, thumbnails, cut the map, where is the original map? The fact that Amazon maps does not post-cut images is not a collage, but instead takes the original image down for analysis and then looks at the rules of Amazon graphics.
The composition of the picture URL
Take a product first to analyze and see kera! (ケラ) May 2012 No. [Foliage Magazine]
Enter the product Preview window, view the source code, and find out the image Web address http://z2-ec2.images-amazon.com/images/P/B007FSZHP8.01._SX291_SCLZZZZZZZ_V135421998_.jpg

It's a pity it's not the original, but let's take a look at the structure of the Image Web site.
"z2-ec2.images-amazon.com":amazon Image Server address "b007fszhp8": Commodity code, you can also see the code "01" from the product page: national codes, such as the 01 United States, 09th, change the numbers should not affect " sx291": The size of the thumbnail, even if the change of the number can only be 500x500 to the image"sclzzzzzzz": The type of the picture, that is, the size of the picture, divided into three →scrmzzzzzz (large), sclzzzzzzz (middle), scmzzzzzzz (small)" v135421998": It should be another number, so you can forget about it.
The above know that the image network is composed of:/HTTP z2-ec2.images-amazon.com/images/p/[commodity code 10 characters. [Country code 2 characters]. [Image size]._[]_.jpg and then Amazon.co.jp official page also mentions some of the rules of Origin "main" refers to the main picture, "pt+ number" refers to other pictures
So change the structure a little bit and replace the main [picture size]: http://z2-ec2.images-amazon.com/images/p/[commodity code 10 characters]. [Country code 2 characters]. MAIN. [The species of].jpg
After you get the formula, you move into the action: http://z2-ec2.images-amazon.com/images/P/B007FSZHP8.01.MAIN._SCRMZZZZZZ_.jpg

The test was successful! So if you want to get Amazon map, just use the formula below to do it: http://z2-ec2.images-amazon.com/images/p/[commodity code].01.main._scrmzzzzzz_.jpg
Also can be reduced to: http://z2-ec2.images-amazon.com/images/p/[Commodity code].01.main._scrm_.jpg http://z2-ec2.images-amazon.com/ images/p/[Commodity Code].01._scrm_.jpg
Other thumbnail URLs for the preview map
If there's more than one preview, what else do you want to grab? Take スマップ?エイド This product for example スマップ?エイドHTTP://WWW.AMAZON.CO.JP/DP/B0056W96V6/REF=CM_SW_R_TW_DP_LOLYPB1M753F2
The above mentioned that the "pt+ number refers to other images", such as PT01, PT02 and so on such a push so the group into a formula to change the PT01 instead of the main:http://z2-ec2.images-amazon.com/images/p/[commodity code]. 01.pt01._scrmzzzzzz_.jpg is then acting as a http://z2-ec2.images-amazon.com/images/P/B0056W96V6.01.PT01._SCRMZZZZZZ_.jpg.

The original map of the other preview came out.

But the way to grab the big picture doesn't have all the code. Amazon's Image Web site has other rules, this is just a simple description of the analysis process
It says so much, if you think it's lazy very annoying, I have found a Web site: http://tool.horan.cc/amazon/amazon.html directly to the website, click the button can run the big picture of the Web site, want to hit me ah xdddd

How to crawl a large Amazon map

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.