How pwxcoo/chinese-xinhua works
This repository is a static Chinese dictionary and phrase database, not a running API; the README says the API was discontinued. Its user workflow is to obtain the relevant JSON or CSV collection and use its records directly. The collections cover characters, words, idioms, and xiehouyu, with an additional CSV dataset. Scraping scripts document data acquisition, but the excerpts do not establish how every checked-in data file was produced; only the ci.csv write is explicit.
Main entry points: idiom.json Idiom records · word.json Character records · xiehouyu.json Xiehouyu records · ci.csv Word CSV
Components 11
Data collections
- Character records
data/word.json - Word records
data/ci.json - Idiom records
data/idiom.json - Xiehouyu records
data/xiehouyu.json - Word CSV
data/ci.csv
Data acquisition
- Character scraper
scripts/word.py - Idiom scraper
scripts/chengyu.py - Xiehouyu scraper
scripts/xiehouyu.py - Word scraper
scripts/ci.py - Abbreviation enrichment
scripts/addAbbreviation.py
Other components
- Data user
Connections 10
- Character records → Data user: provides records
README.md - Word records → Data user: provides records
README.md - Idiom records → Data user: provides records
README.md - Xiehouyu records → Data user: provides records
README.md - Word CSV → Data user: provides data
README.md - Character scraper → Character records: writes JSON
- Idiom scraper → Idiom records: writes JSON
- Xiehouyu scraper → Xiehouyu records: writes JSON
- Word scraper → Word CSV: appends CSV
scripts/ci.py - Abbreviation enrichment → Idiom records: writes JSON