This repository contains a web scraper API for extracting product data from Shopee Taiwan's pages.
-
Clone the repository:
git clone https://github.com/TiwariAbhishek23/shopee-scraper-api.git
-
Install the dependencies:
cd shopee-scraper-api pnpm install
-
Start the server:
pnpm run dev
-
Open your browser and navigate to http://localhost:3000
Create a .env
file in the root directory of the project and add the following:
PORT
PROXY_HOST
PROXY_PORT
PROXY_USERNAME
PROXY_PASSWORD
-
/shopee
- Method:
GET
- Query Parameters:
itemId
: The ID of the product.shopId
: The ID of the shop.
- Response: A JSON format with all details.
- Method:
-
Download and install ngrok from https://ngrok.com/download.
-
Run the following command to expose the local server to the internet:
ngrok http 3000
-
Copy the forwarding URL and use it to make requests to the API.
- Just tunneling the localhost server to the internet so it is of no use.
- https://skilled-treefrog-vertically.ngrok-free.app/
This project is licensed under the MIT License
If you encounter any issues, feel free to create an issue in the repository.