Skip to content

jeff2go/1688-Crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1688-Crawler

Based on Flask, require python3.9

Install

Create a virtual environment by venv

python3 -m venv .venv
source .venv/bin/activate

Install requirements by pip:

pip install -r requirements.txt

Config

mv .env.example .env

Run

python run.py

Open http://127.0.0.1:8080 in a browser.

API Endpoints

1. Get Categories

GET /crawlers/categories

Retrieves all categories from a 1688 shop home page.

  • Query Parameter: url - The URL of the 1688 shop home page

2. Get Product List

GET /crawlers/products

Retrieves a list of products from a 1688 shop category or search page.

  • Query Parameter: url - The URL of a shop product list page

3. Get Product Details

GET /crawlers/product

Retrieves detailed information about a specific product.

  • Query Parameter: url - The URL of the product detail page

About

1688 Crawler based on Flask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published