How lingmeng101-bot/softly works
softly is a multi-site crawler that starts from configured targets, fetches pages, detects response format, selects a site-specific or generic parser, validates and deduplicates article-like records, then saves them to SQLite and follows pagination. The graph preserves the configured site adapters and the generic JSON/HTML parsing and response guard. Evidence is limited to the README and indexed excerpts; the 30aitool adapter implementation and some helpers were not sampled, so uncertain internal calls are omitted.
Main entry points: pipeline.py Crawl pipeline · __init__.py Parser selection · main.py Crawler entry · generic.py Generic parser
Components 17
Run and orchestration
- Crawler entry
main.py - Target config
config.py - Crawl pipeline
pipeline.py - Fallback paginator
paginator.py
Fetch and format
- HTTP fetcher
crawler/fetcher.py - Format detection
crawler/sniff.py
Parsing adapters
- Parser selection
crawler/sites/__init__.py - Generic parser
crawler/sites/generic.py - JSON response guard
crawler/guard.py - Ahszu adapter
crawler/sites/ahszu.py - Xsyu adapter
crawler/sites/xsyu.py - Books adapter
crawler/sites/books.py - Aitool adapter
crawler/sites/aitool30.py
Records and persistence
- Article model
models.py - Dedup hashing
hashing.py - SQLite storage
storage.py
Other components
- Operator
Connections 18
- Operator → Crawler entry: starts
README.md - Crawler entry → Target config: reads targets
main.py - Crawler entry → SQLite storage: opens database
main.py - Crawler entry → Crawl pipeline: runs target
main.py - Crawl pipeline → HTTP fetcher: fetches page
pipeline.py - Crawl pipeline → Format detection: classifies response
pipeline.py - Crawl pipeline → Parser selection: selects parser
pipeline.py - Parser selection → Generic parser: falls back
crawler/sites/__init__.py - Parser selection → Ahszu adapter: routes host
crawler/sites/__init__.py - Parser selection → Xsyu adapter: routes host
crawler/sites/__init__.py - Parser selection → Books adapter: routes host
crawler/sites/__init__.py - Parser selection → Aitool adapter: routes host
crawler/sites/__init__.py - Generic parser → JSON response guard: checks JSON
crawler/sites/generic.py - Generic parser → Article model: creates records
crawler/sites/generic.py - Crawl pipeline → Dedup hashing: computes keys
pipeline.py - Crawl pipeline → SQLite storage: checks and saves
pipeline.py - Crawl pipeline → Fallback paginator: falls back to
pipeline.py - Crawl pipeline → Books adapter: requests next page
README.md