Skip to content

Instantly share code, notes, and snippets.

@scope2229
Created April 11, 2018 05:04
Show Gist options
  • Save scope2229/9a4f6dc4f84144497d76efea260df51a to your computer and use it in GitHub Desktop.
Save scope2229/9a4f6dc4f84144497d76efea260df51a to your computer and use it in GitHub Desktop.
results json ruby hash
@output['products'][0]
=> {
"url"=>"http://omgili.com/ri/.wHSUbtEfZTzBH6c9Z4cI15_sA3Hthoy48U8beRZ_m5lA7IjRC07KAl_t9PZZTUpVyIElYRPNwESkpgWrFuLtCsKQ1Apdjx_jld142pfHUAdippyPkgHob2bwpktxkzZqvVelr3L3OOq9qp5XCHXEYkx1GYb0O_awd5Z8FnemrBnhIJ4ZIOaKn7WinS9k36LajW78ScZZFngDQem4_p6BKrC02m1OhRc",
"uuid"=>"bc54af0e0b4da231cad1a1352544fd3e6c234c68",
"source"=>{
"site_full"=>"www.walmart.com",
"site"=>"walmart.com",
"site_section"=>"https://www.walmart.com/",
"section_title"=>"Walmart.com: Free 2-Day Shipping on Millions of Items",
"country"=>"US"},
"name"=>"DIY Home Security for Preppers: 16 DIY Home Security Projects to Protect Your Family from Any Disaster: (Home Security Arduino, Home Security Raspberr",
"description"=>"Getting Your FREE Bonus Download this book, read it to the end and see \"BONUS: Your FREE Gift\" chapter after the conclusion. DIY Home Security for Preppers (FREE Bonus Included) 16 DIY Home Security Projects To Protect Your Family From Any Disaster",
"brand"=>"",
"price"=>8.95,
"currency"=>"$",
"offer_price"=>7.46,
"model"=>nil,
"manufacturer"=>nil,
"in_stock"=>true,
"on_sale"=>true,
"product_id"=>"53228544",
"sku"=>nil,
"mpn"=>nil,
"colors"=>[],
"aggregated_rating"=>nil,
"best_rating"=>nil,
"worst_rating"=>nil,
"rating_count"=>nil,
"reviews_count"=>nil,
"categories"=>["equipment, appliances & supplies", "books", "house & home", "home page", "travel", "house, home & gardening", "toys-hobbies"],
"width"=>nil,
"height"=>nil,
"weight"=>nil,
"depth"=>nil,
"images"=>["https://i5.walmartimages.com/asr/8db293c3-165e-4d4c-85bd-0d07390211f1_1.4f4822a5adfdb0ade9491a1a4db775e9.jpeg"],
"language"=>"english",
"last_changed"=>"2017-10-10T06:22:00.000+03:00",
"crawled"=>"2017-10-10T06:22:00.000+03:00",
"product_history"=>"/productHistory?&productId=http%3A%2F%2Fomgili.com%2Fri%2F.wHSUbtEfZTzBH6c9Z4cI15_sA3Hthoy48U8beRZ_m5lA7IjRC07KAl_t9PZZTUpVyIElYRPNwESkpgWrFuLtCsKQ1Apdjx_jld142pfHUAdippyPkgHob2bwpktxkzZqvVelr3L3OOq9qp5XCHXEYkx1GYb0O_awd5Z8FnemrBnhIJ4ZIOaKn7WinS9k36LajW78ScZZFngDQem4_p6BKrC02m1OhRc"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment