Skip to content

fazxid/shopee-product-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopee Product Scraper

Scrape Data & Images From Marketplace Shopee

Installation

$ git clone https://github.com/fazxid/shopee-product-scraper
$ npm install

Example

const shopeeScraper = require('./lib/node-shopee-scraper');
const scrape = new shopeeScraper({
    mainUrl : 'https://shopee.co.id/',
    userAgent : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36',
    savePath : path.join(__dirname, './storage/'),
    headless : true,
    extract : ['data','image']

})

(async () => {
    try {
        let store = 'samsung.official'
        await scrape.go(store)

    } catch (err) {
        console.log(err)
    }

})();

Executing Shell Commands

node scrape '{storename}'

$ node scrape 'samsung.official'

License

MIT

Copyright (c) 2020 Fazxid