Giter Site home page Giter Site logo

amazonsearch's Introduction

Goal

Create a command line application called amazon.py. The application accepts a couple of flags and an user query, and then prints out the first page of amazon store results based on the user supplied information.

Example

./amazon.py --sort rating --desc office chairs

Flash Furniture Mid-Back Black Mesh Computer Chair
Price: $59.88
Rating: ★★★☆☆ (242 reviews)
Url: http://www.amazon.com/Flash-Furniture-Mid-Back-Black-Computer

Boss Black LeatherPlus Executive Chair
Price: $159.99
Rating: ★★★★☆ (502 reviews)
Url: http://www.amazon.com/Flash-Furniture-Mid-Back-Black-Computer

... and so on ...

Requirements

  1. The program must scrape the HTML of the following page: (Not using an Amazon API) Example HTTP request would typically like : http://www.amazon.com/s/?field-keywords=query
  2. The program can use any python library(s).
  3. The program must allow the user to specify a search query.
  4. The program must accept the options --sort {rating, price, name} and --{asc, desc} at a minimum.
  5. Support additional flags such as --prime (only select items which have amazon prime benefits)
  6. The program should return no more than 10 results. Check if we can allow --limit {number of results}.

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.