Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
amazon-buddy
Advanced tools
Amazon Scraper. Scrape useful product information from the amazon search results
Useful tool to scrape product information from amazon
Note:
Possible errors
Install from NPM
$ npm i -g amazon-buddy
Install from YARN
$ yarn global add amazon-buddy
Terminal
$ amazon-buddy --help
Usage: amazon-buddy <command> [options]
Commands:
amazon-buddy search [options]
Options:
--help, -h help [boolean]
--version Show version number [boolean]
--keyword, -k Amazon search keyword ex. 'Xbox one'
[string] [required] [default: ""]
--products, -p Number of products to scrape. Maximum 100 [default: 20]
--save, -s Save to a CSV file? [boolean] [default: false]
--sponsored, -s Scrape sponsored products [boolean] [default: false]
Examples:
amazon-buddy search -k 'Xbox one'
Example
Scrape 40 producs from the "vacume cleaner" keyword and save everything to a CSV file
$ amazon-buddy search -k 'vacume cleaner' -s -p 40
The file will be saved in a folder from which you run the script: 1552945544582.csv
Module
const amazonScraper = require('amazon-buddy');
(async() => {
try{
let result = await amazonScraper({keyword: 'Xbox One', number: 50, save: true });
console.log(result)
}catch(error){
console.log(error);
}
})()
JSON/CSV output:
[{
asin: 'B01N6HLV9L',
discounted: false, // is true if product is with the discount
sponsored: false, // is true if product is sponsored
price: '$32.99',
before_discount: '$42.99', // displayed only if price is discounted
title:'product title',
url:'long amazon url'
}...]
Options
let options = {
//Search keyword
keyword: 0,
//Number of products to scrape. Default 20
number: 20,
//Save to a CSV file
save: true,
//Set proxy
proxy: "",
};
MIT
Free Software
FAQs
Amazon Scraper. You can scrape products from amazon search result and you can also scrape reviews from a specific product
We found that amazon-buddy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.