Skip to content

Command line utility to search content on Amazon

Notifications You must be signed in to change notification settings

njm2112/AmazonSearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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}.

About

Command line utility to search content on Amazon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%