Skip to content

TiwariAbhishek23/shopee-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopee Scraper API

This repository contains a web scraper API for extracting product data from Shopee Taiwan's pages.

Setup

  1. Clone the repository:

    git clone https://github.com/TiwariAbhishek23/shopee-scraper-api.git
  2. Install the dependencies:

    cd shopee-scraper-api
    pnpm install
  3. Start the server:

    pnpm run dev
  4. Open your browser and navigate to http://localhost:3000

Env Setup

Create a .env file in the root directory of the project and add the following:

PORT
PROXY_HOST
PROXY_PORT
PROXY_USERNAME
PROXY_PASSWORD

API Endpoints

  • /shopee

    • Method: GET
    • Query Parameters:
      • itemId: The ID of the product.
      • shopId: The ID of the shop.
    • Response: A JSON format with all details.

Ngrok Setup

  1. Download and install ngrok from https://ngrok.com/download.

  2. Run the following command to expose the local server to the internet:

    ngrok http 3000
  3. Copy the forwarding URL and use it to make requests to the API.

Ngrok Url

Some Resources

License

This project is licensed under the MIT License

Issues

If you encounter any issues, feel free to create an issue in the repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published