Skip to content

Tokopedia Simple Scraper is a project to provide products data of Tokopedia when doing search such as Product name, Image, Price, Star, Sold, and etc..

Notifications You must be signed in to change notification settings

maafaishal/tokopedia-scraper-puppeteer

Repository files navigation

Tokopedia Simple Scraper

Tokopedia Simple Scraper is a project to provide products data of Tokopedia when doing search such as Product Name, Image, Price, Star, Sold, and etc..

Usage

To run the script:

npm run scrape:tokopedia-search -- --productSearch=[product_name_or_keyword]

Example:

npm run scrape:tokopedia-search -- --productSearch="sepatu compass"

Result:

[
 {
    "title": "sepatu Compass Gazelle Low Black White",
    "shopName": "Elsyz ID",
    "price": "Rp429.999",
    "img": "https://images.tokopedia.net/img/cache/200-square/VqbcmM/2022/10/17/3c26e6e4-be8a-4af0-acbd-652d275cf25d.jpg",
    "star": "4.9",
    "sold": "Terjual 500+"
  },
  {
    "title": "Sepatu Compass Gazelle High Black White",
    "shopName": "Elsyz ID",
    "price": "Rp499.999",
    "img": "https://images.tokopedia.net/img/cache/200-square/VqbcmM/2022/10/17/350e2748-9fdd-455a-891d-10614c63e4dd.jpg",
    "star": "4.9",
    "sold": "Terjual 100+"
  },
]

Tech Stack

Puppeteer TypeScript

About

Tokopedia Simple Scraper is a project to provide products data of Tokopedia when doing search such as Product name, Image, Price, Star, Sold, and etc..

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published