Coder Social home page Coder Social logo

google-shopping-ruby's Introduction

#Google Shopping (Ruby)

Now with 100% more Ruby and 100% less JavaScript

You've already done it in JavaScript... now lets try it again in Ruby. This will help you get ready to dive into Ruby and should teach you how to be resourceful.

Google and Ruby's documentation have all of the answers. Start slow and use smart searching for things like...

  • Filtering an array in Ruby
  • Mapping an array in Ruby
  • Iterating over a hash in Ruby

##Getting Started

  • Fork and clone this repo
  • Run bundle install to install dependencies
    • This installs gems. Gems are packages, and are installed using bundler.
  • Run the file by typing ruby lib/google_shopping.rb
    • Run rubocop to lint your code

##Assignment (Déjà vu)

Use the product search result in your file to check the following:

1.) The kind of results you're are dealing are shopping#products. Go through the items and find all results that have kind of shopping#product. How many are there? Where else is this count information stored in the search results?

2.) Find all items with a backorder availability in inventories.

3.) Find all items with more than one image link.

4.) Find all canon products in the items (careful with case sensitivity).

5.) Find all items that have product author name of "eBay" and are brand "Canon".

6.) Print all the products with their brand, price, and a image link


Licensing

  1. All content is licensed under a CC-BY-NC-SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

google-shopping-ruby's People

Contributors

bhague1281 avatar

Watchers

Miguel Pou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.