Skip to content

A simple script to scrape Amazon product listings from the first page of search results for a given keyword.

Notifications You must be signed in to change notification settings

Juniorbasck/AmazonScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Amazon Scraper

Create a simple script to scrape Amazon product listings from the first page of search results for a given keyword.

OBS:

I took the liberty of using the React library in the front-end together with Tailwind CSS to implement the interface

Stack used

Front-end: React, TailwindCSS, Axios

Back-end: Express, Node , Axios and JSDOM

Instalação

  • You need to have node.js instaled in your system: version 21.7.1

after cloning the repository...

Install the back-end dependences

  cd server/  
  npm install  

Install front-end dependences

  cd server/  
  npm install  

to run the server side just put on terminal on directory src/

   node serve.js

to run the client side just put on terminal on directory src/

   npm start

API documentation

  GET http://localhost:5000/api/scrape?keyword=${keyword}
Parâmetro Tipo Descrição
keyword string keyword is mandatory.

Return a JSOM of products of amazon store.

example:

    {
        "title": "Mouse Gamer Redragon Storm Elite RGB Lunar White M988W-RGB, Branco",
        "rating": "4,6",
        "reviews": "163",
        "image": "https://m.media-amazon.com/images/I/51tniuFnhzL._AC_UL320_.jpg"
    },

About

A simple script to scrape Amazon product listings from the first page of search results for a given keyword.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published