Skip to content

Raisess/razor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Razor

Amazon products scraper, kinda a backend for web crawlers applications.

Installing

Clone the repository.

git clone https://github.com/Raisess/razor.git

Enter to the project folder.

cd razor

Then, compile the project and run.

npm run compile | npm run start

Using lib

Can you use razor, its simple.

import Razor from "./Razor";

/*
 * @param amazonUri string
 * @param search    string
 */
const razor: Razor = new Razor("https://www.amazon.com", "shoes");

(async (): Promise<void> => {
	/*
	 * @param pageLimit number; default is 1
	 */
	console.log(await razor.getProducts(2));
	// returns the products array, try to see data.
});

Client

TODO: A crawler client, maybe with puppeteer.