-
Notifications
You must be signed in to change notification settings - Fork 0
/
amazon output
162 lines (151 loc) · 12.7 KB
/
amazon output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{ "ASIN"=>"B01LWCWM4O",
"DetailPageURL"=>"https://www.amazon.com/3dRose-mug_235574_5-Sake-Tone-White/dp/B01LWCWM4O?SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B01LWCWM4O",
"ItemLinks"=>{
"ItemLink"=>[{
"Description"=>"Technical Details",
"URL"=>"https://www.amazon.com/3dRose-mug_235574_5-Sake-Tone-White/dp/tech-data/B01LWCWM4O?SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"},
{
"Description"=>"Add To Baby Registry", "URL"=>"https://www.amazon.com/gp/registry/baby/add-item.html?asin.0=B01LWCWM4O&SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"},
{
"Description"=>"Add To Wedding Registry", "URL"=>"https://www.amazon.com/gp/registry/wedding/add-item.html?asin.0=B01LWCWM4O&SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"},
{
"Description"=>"Add To Wishlist", "URL"=>"https://www.amazon.com/gp/registry/wishlist/add-item.html?asin.0=B01LWCWM4O&SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"},
{
"Description"=>"Tell A Friend", "URL"=>"https://www.amazon.com/gp/pdp/taf/B01LWCWM4O?SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"},
{
"Description"=>"All Customer Reviews", "URL"=>"https://www.amazon.com/review/product/B01LWCWM4O?SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"},
{
"Description"=>"All Offers", "URL"=>"https://www.amazon.com/gp/offer-listing/B01LWCWM4O?SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O"}]},
"SmallImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"},
"Width"=>{"__content__"=>"75", "Units"=>"pixels"}},
"MediumImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL160_.jpg", "Height"=>{"__content__"=>"160", "Units"=>"pixels"},
"Width"=>{"__content__"=>"160", "Units"=>"pixels"}},
"LargeImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL.jpg",
"Height"=>{"__content__"=>"500", "Units"=>"pixels"},
"Width"=>{"__content__"=>"500", "Units"=>"pixels"}},
"ImageSets"=>{
"ImageSet"=>[{
"SwatchImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL30_.jpg",
"Height"=>{"__content__"=>"30", "Units"=>"pixels"},
"Width"=>{"__content__"=>"30", "Units"=>"pixels"}},
"SmallImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg",
"Height"=>{"__content__"=>"75", "Units"=>"pixels"},
"Width"=>{"__content__"=>"75", "Units"=>"pixels"}},
"ThumbnailImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg",
"Height"=>{"__content__"=>"75", "Units"=>"pixels"},
"Width"=>{"__content__"=>"75", "Units"=>"pixels"}},
"TinyImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL110_.jpg",
"Height"=>{"__content__"=>"110", "Units"=>"pixels"},
"Width"=>{"__content__"=>"110", "Units"=>"pixels"}},
"MediumImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL160_.jpg",
"Height"=>{"__content__"=>"160", "Units"=>"pixels"},
"Width"=>{"__content__"=>"160", "Units"=>"pixels"}},
"LargeImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL.jpg",
"Height"=>{"__content__"=>"500", "Units"=>"pixels"},
"Width"=>{"__content__"=>"500", "Units"=>"pixels"}},
"Category"=>"variant"}
,
{"SwatchImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL30_.jpg",
"Height"=>{"__content__"=>"30", "Units"=>"pixels"},
"Width"=>{"__content__"=>"30", "Units"=>"pixels"}},
"SmallImage"=>{
"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"}, "Width"=>{"__content__"=>"75", "Units"=>"pixels"}}, "ThumbnailImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"}, "Width"=>{"__content__"=>"75", "Units"=>"pixels"}}, "TinyImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL110_.jpg", "Height"=>{"__content__"=>"110", "Units"=>"pixels"}, "Width"=>{"__content__"=>"110", "Units"=>"pixels"}}, "MediumImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL160_.jpg", "Height"=>{"__content__"=>"160", "Units"=>"pixels"}, "Width"=>{"__content__"=>"160", "Units"=>"pixels"}}, "LargeImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL.jpg", "Height"=>{"__content__"=>"500", "Units"=>"pixels"}, "Width"=>{"__content__"=>"500", "Units"=>"pixels"}}, "Category"=>"variant"}, {"SwatchImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL30_.jpg", "Height"=>{"__content__"=>"30", "Units"=>"pixels"}, "Width"=>{"__content__"=>"30", "Units"=>"pixels"}}, "SmallImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"}, "Width"=>{"__content__"=>"75", "Units"=>"pixels"}}, "ThumbnailImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"}, "Width"=>{"__content__"=>"75", "Units"=>"pixels"}}, "TinyImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL110_.jpg", "Height"=>{"__content__"=>"110", "Units"=>"pixels"}, "Width"=>{"__content__"=>"110", "Units"=>"pixels"}}, "MediumImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL160_.jpg", "Height"=>{"__content__"=>"160", "Units"=>"pixels"}, "Width"=>{"__content__"=>"160", "Units"=>"pixels"}}, "LargeImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL.jpg", "Height"=>{"__content__"=>"500", "Units"=>"pixels"}, "Width"=>{"__content__"=>"500", "Units"=>"pixels"}}, "Category"=>"variant"}, {"SwatchImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL30_.jpg", "Height"=>{"__content__"=>"30", "Units"=>"pixels"}, "Width"=>{"__content__"=>"30", "Units"=>"pixels"}}, "SmallImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"}, "Width"=>{"__content__"=>"75", "Units"=>"pixels"}}, "ThumbnailImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL75_.jpg", "Height"=>{"__content__"=>"75", "Units"=>"pixels"}, "Width"=>{"__content__"=>"75", "Units"=>"pixels"}}, "TinyImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL110_.jpg", "Height"=>{"__content__"=>"110", "Units"=>"pixels"}, "Width"=>{"__content__"=>"110", "Units"=>"pixels"}}, "MediumImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL._SL160_.jpg", "Height"=>{"__content__"=>"160", "Units"=>"pixels"}, "Width"=>{"__content__"=>"160", "Units"=>"pixels"}}, "LargeImage"=>{"URL"=>"https://images-na.ssl-images-amazon.com/images/I/51L28eSCFJL.jpg", "Height"=>{"__content__"=>"500", "Units"=>"pixels"}, "Width"=>{"__content__"=>"500", "Units"=>"pixels"}}, "Category"=>"primary"}]},
"ItemAttributes"=>{
"Binding"=>"Kitchen",
"Brand"=>"3dRose",
"Color"=>"Red/White",
"EAN"=>"0190133806799",
"EANList"=>{"EANListElement"=>"0190133806799"},
"Feature"=>["White ceramic mug with red interior and handle", "Image printed on both sides", "Available in 11oz only", "Microwave safe, hand-wash to preserve image", "High gloss finish"],
"IsAdultProduct"=>"0",
"ItemDimensions"=>{"Height"=>{"__content__"=>"375", "Units"=>"hundredths-inches"}, "Length"=>{"__content__"=>"400", "Units"=>"hundredths-inches"}, "Weight"=>{"__content__"=>"76", "Units"=>"Hundredths Pounds"}, "Width"=>{"__content__"=>"300", "Units"=>"hundredths-inches"}},
"Label"=>"3dRose",
"ListPrice"=>{"Amount"=>"1296", "CurrencyCode"=>"USD", "FormattedPrice"=>"$12.96"},
"Manufacturer"=>"3dRose",
"Model"=>"mug_235574_5",
"MPN"=>"mug_235574_5",
"NumberOfItems"=>"1",
"PackageDimensions"=>{"Height"=>{"__content__"=>"421", "Units"=>"hundredths-inches"}, "Length"=>{"__content__"=>"610", "Units"=>"hundredths-inches"}, "Weight"=>{"__content__"=>"80", "Units"=>"Hundredths Pounds"}, "Width"=>{"__content__"=>"488", "Units"=>"hundredths-inches"}},
"PackageQuantity"=>"1",
"PartNumber"=>"mug_235574_5",
"ProductGroup"=>"Kitchen",
"ProductTypeName"=>"KITCHEN",
"Publisher"=>"3dRose",
"Size"=>"11 oz",
"Studio"=>"3dRose",
"Title"=>"3dRose mug_235574_5 \"For Fox Sake\" Two Tone Red Mug, 11 oz, Red/White",
"UPC"=>"190133806799",
"UPCList"=>{"UPCListElement"=>"190133806799"}},
"OfferSummary"=>{
"LowestNewPrice"=>{"Amount"=>"720", "CurrencyCode"=>"USD", "FormattedPrice"=>"$7.20"},
"LowestUsedPrice"=>{"Amount"=>"1004", "CurrencyCode"=>"USD", "FormattedPrice"=>"$10.04"},
"TotalNew"=>"2",
"TotalUsed"=>"1",
"TotalCollectible"=>"0",
"TotalRefurbished"=>"0"},
"Offers"=>{
"TotalOffers"=>"1",
"TotalOfferPages"=>"1",
"MoreOffersUrl"=>"https://www.amazon.com/gp/offer-listing/B01LWCWM4O?SubscriptionId=AKIAI4G46C52TJG5WRWA&tag=boozeandsnark-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=B01LWCWM4O",
"Offer"=>{
"OfferAttributes"=>{"Condition"=>"New"},
"OfferListing"=>{
"OfferListingId"=>"NAGetCc%2FbK1C%2FHWOdS2x%2BQ02oOmkntZjsqBELFpdMNCi4PZ3UeIJIIXfajCuRMP4IUx7NhkGVj5upPwCyKMnQUufBu4zb1%2FCnSAiZQCzC6Mzv%2B458meMZA%3D%3D",
"Price"=>{
"Amount"=>"1296",
"CurrencyCode"=>"USD",
"FormattedPrice"=>"$12.96"},
"AvailabilityAttributes"=>{
"AvailabilityType"=>"futureDate",
"MinimumHours"=>"0",
"MaximumHours"=>"0"},
"IsEligibleForSuperSaverShipping"=>"1",
"IsEligibleForPrime"=>"1"
}
}
}
}
#<HTTParty::Response:0x7fc43e0d32e8 parsed_response={
"ItemSearchResponse"=>{
"OperationRequest"=>{
"HTTPHeaders"=>{
"Header"=>{
"Name"=>"UserAgent", "Value"=>"Ruby"}},
"RequestId"=>"51c7dea1-fd69-4f41-949b-73df458544d2",
"Arguments"=>{
"Argument"=>
[{"Name"=>"AWSAccessKeyId", "Value"=>"AKIAI4G46C52TJG5WRWA"},
{"Name"=>"AssociateTag", "Value"=>"boozeandsnark-20"},
{"Name"=>"Keywords", "Value"=>"gibson dg-33"},
{"Name"=>"Operation", "Value"=>"ItemSearch"},
{"Name"=>"ResponseGroup", "Value"=>"Images,ItemAttributes,Offers"},
{"Name"=>"SearchIndex", "Value"=>"All"},
{"Name"=>"Service", "Value"=>"AWSECommerceService"},
{"Name"=>"Timestamp", "Value"=>"2018-01-11T22:16:44Z"},
{"Name"=>"Signature", "Value"=>"C0zN46KPDUORFuPx+/kC5x1xD7/06l53F9hjONKfeoI="}]},
"RequestProcessingTime"=>"0.0187733630000000"},
"Items"=>{
"Request"=>{
"IsValid"=>"True",
"ItemSearchRequest"=>{
"Keywords"=>"gibson dg-33",
"ResponseGroup"=>["Images", "ItemAttributes", "Offers"],
"SearchIndex"=>"All"},
"Errors"=>{
"Error"=>{
"Code"=>"AWS.ECommerceService.NoExactMatches",
"Message"=>"We did not find any matches for your request."}}},
"TotalResults"=>"0",
"TotalPages"=>"0", "MoreSearchResultsUrl"=>"https://www.amazon.com/gp/search?linkCode=xm2&SubscriptionId=AKIAI4G46C52TJG5WRWA&keywords=gibson%20dg-33&tag=boozeandsnark-20&creative=386001&url=search-alias%3Daws-amazon-aps&camp=2025"}}},
@response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"date"=>["Thu, 11 Jan 2018 22:16:44 GMT"], "server"=>["Apache-Coyote/1.1"], "content-type"=>["text/xml;charset=UTF-8"], "vary"=>["Accept-Encoding,User-Agent"], "transfer-encoding"=>["chunked"]}>
"ItemSearchResponse", "Items", "Request", "Errors", "Error", "Message"