Directories
¶
| Path | Synopsis |
|---|---|
|
Package cli builds the douban command tree on top of the douban library.
|
Package cli builds the douban command tree on top of the douban library. |
|
cmd
|
|
|
douban
command
Command douban is a single-binary command line for douban-cli.
|
Command douban is a single-binary command line for douban-cli. |
|
Package douban is the library behind the douban command: the HTTP client, request shaping, and typed data models for Douban (豆瓣).
|
Package douban is the library behind the douban command: the HTTP client, request shaping, and typed data models for Douban (豆瓣). |
|
Package mirror holds the shared routing logic for the Douban mirror crawler: turning a URL into the entity it represents and the source best suited to fetch it.
|
Package mirror holds the shared routing logic for the Douban mirror crawler: turning a URL into the entity it represents and the source best suited to fetch it. |
|
crawl
Package crawl runs the Douban mirror: it drains the frontier, fetches each URL through the source that serves it, stores the raw bytes and a record, expands the links it discovers, and marks every row's outcome.
|
Package crawl runs the Douban mirror: it drains the frontier, fetches each URL through the source that serves it, stores the raw bytes and a record, expands the links it discovers, and marks every row's outcome. |
|
sitemap
Package sitemap enumerates Douban's crawlable URL space from its sitemap backbone.
|
Package sitemap enumerates Douban's crawlable URL space from its sitemap backbone. |
|
store
Package store is the persistence layer for the Douban mirror: a frontier of URLs to crawl, the normalized records harvested from them, crawl cursors, and the raw artifact files captured verbatim.
|
Package store is the persistence layer for the Douban mirror: a frontier of URLs to crawl, the normalized records harvested from them, crawl cursors, and the raw artifact files captured verbatim. |
|
pkg
|
|
|
render
Package render turns slices of record structs into one of the output formats hackernews-cli supports: table, json, jsonl, csv, tsv, url, and raw.
|
Package render turns slices of record structs into one of the output formats hackernews-cli supports: table, json, jsonl, csv, tsv, url, and raw. |
Click to show internal directories.
Click to hide internal directories.