Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

Lappercn/tender-master

Data

Collects and structures public Chinese bidding notices into a MongoDB-backed query API and console.

116
33
Python
MIT
1 day old

What this is

Tender Master is an archived, MIT-licensed Python project for collecting public tender and procurement notices from more than 20 Chinese government and state-owned enterprise portals, extracting structured fields, and serving them through a query API and a Vue 3 console. It matters to developers studying browser automation, DOM parsing, regex-based field extraction, or domain-driven data pipeline design for tender data. The author states the project is no longer actively maintained and was open-sourced as a learning archive project background.

The repository contains three generations of code: a DDD-style "six networks" modular collector, 15 standardized standalone site scripts under wj_spiders/, and early topic-specific scripts in legacy_spiders/ full script catalog. Extraction centers on title cleaning plus an MD5 fingerprint (contentId) for cross-platform deduplication, a six-level priority funnel for budget/control prices, and a 50-character proximity window that pairs contact names with phone numbers to reduce mismatches extraction rules.

Quick start

Requirements: Python 3.10+, Google Chrome with a matching ChromeDriver, MongoDB 5.0+, and Node.js 18+ only if you build the frontend. Start from the repository root:

pip install -r requirements.txt
cp .env.example .env
python manage.py check
python manage.py run sgcc_ecp --pages 1

After a successful single-source run, inspect stored data and queue state with python manage.py status. To use the query API, run python manage.py api and open Swagger at http://127.0.0.1:8787/docs; the web console starts with python manage.py console on port 8788 quick start. For an offline introduction without touching external sites, run the unit tests with python -m unittest discover -s tests; they cover regex extraction, title fingerprints, and query boundaries.

The source IDs, channel arguments, and lookback options used by manage.py run are documented in the catalog tables; verify a source directory exists before choosing it source list.

Operational constraints

The collectors target live public notice pages through Selenium or undetected-chromedriver, so they need a working Chrome/ChromeDriver pairing and network access. MongoDB is required for normal storage; when it is unavailable, results can be spooled locally and replayed with python manage.py replay after the database returns architecture notes. The Windows process guard relies on Job Objects to clean up leftover browser processes, so that part is Windows-specific, while the rest of the stack is not described as cross-platform.

The README places legal and compliance obligations on users: check each site's robots.txt and terms, keep the built-in rate limits, never use high-concurrency or distributed crawling against these sites, and use the contact-extraction logic only for algorithm study rather than marketing or resale legal notice. Some historical scripts involved logged-in pages; credentials were stripped. Treat the code as an educational archive rather than a maintained data service.

HotRepo's take

The repository has a recorded Python new-list snapshot on 2026-11-26 with 107 stars and 4 stars gained over a roughly 1.5-hour observation window. That is a single short-window entry, not evidence of sustained adoption, and no all-language daily rank is recorded. The more useful signal here is scope: a complete, documented data foundation spanning collection, cleaning, storage, API, and console is unusual for a personal archive, but the author explicitly says development has stopped. Readers should weigh the substantial code and examples against the lack of ongoing maintenance and the operational cost of browser-driven collection.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.