Based on Flask, require python3.9
Create a virtual environment by venv
python3 -m venv .venv
source .venv/bin/activate
Install requirements by pip:
pip install -r requirements.txt
mv .env.example .env
python run.py
Open http://127.0.0.1:8080 in a browser.
GET /crawlers/categories
Retrieves all categories from a 1688 shop home page.
- Query Parameter:
url
- The URL of the 1688 shop home page
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
GET /crawlers/product
Retrieves detailed information about a specific product.
- Query Parameter:
url
- The URL of the product detail page