{"id":51490365,"url":"https://github.com/rumor-thrower/novelpia_api","last_synced_at":"2026-07-07T11:03:29.224Z","repository":{"id":368679062,"uuid":"1286142743","full_name":"rumor-thrower/novelpia_api","owner":"rumor-thrower","description":"Unofficial Rust API client for the Novelpia web-novel platform (novelpia library + npia CLI)","archived":false,"fork":false,"pushed_at":"2026-07-01T17:02:34.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-01T19:05:14.542Z","etag":null,"topics":["api","cli","novelpia","rust","scraper","webnovel"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumor-thrower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-01T13:39:26.000Z","updated_at":"2026-07-01T17:02:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rumor-thrower/novelpia_api","commit_stats":null,"previous_names":["rumor-thrower/novelpia_api"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rumor-thrower/novelpia_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumor-thrower%2Fnovelpia_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumor-thrower%2Fnovelpia_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumor-thrower%2Fnovelpia_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumor-thrower%2Fnovelpia_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumor-thrower","download_url":"https://codeload.github.com/rumor-thrower/novelpia_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumor-thrower%2Fnovelpia_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35225029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cli","novelpia","rust","scraper","webnovel"],"created_at":"2026-07-07T11:03:28.612Z","updated_at":"2026-07-07T11:03:29.219Z","avatar_url":"https://github.com/rumor-thrower.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# novelpia_api\n\nUnofficial API client for the [Novelpia](https://novelpia.com) web-novel\nplatform, written in Rust.\n\nThe workspace is split into two crates:\n\n| Crate      | Kind    | Description                                                        |\n| ---------- | ------- | ------------------------------------------------------------------ |\n| `novelpia` | library | Typed async client over Novelpia's internal HTTP endpoints.        |\n| `npia`     | binary  | Command-line front-end (`npia`) that drives the library.           |\n\n\u003e **Note:** This project is built from a reverse-engineered specification of\n\u003e Novelpia's private endpoints (see [`novelpia_openapi.yaml`](novelpia_openapi.yaml)).\n\u003e The upstream service is unofficial and may change without notice. Use it in\n\u003e accordance with Novelpia's terms of service.\n\n## Requirements\n\n- Rust `1.86` (pinned via [`rust-toolchain.toml`](rust-toolchain.toml); edition 2024).\n\n## Building\n\n```sh\ncargo build --release\n```\n\nThe `novelpia` library exposes an optional `decrypt` feature for AES decryption\nof the viewer `c` field. Key derivation is not yet reverse-engineered, so it is\noff by default and the raw ciphertext is returned.\n\n```sh\ncargo build -p novelpia --features decrypt\n```\n\n## Using the `npia` CLI\n\n```\nUsage: npia [OPTIONS] \u003cCOMMAND\u003e\n\nCommands:\n  reviews          Fetch novel reviews (작품평)\n  views            Fetch per-episode view counts (batch)\n  episodes         Fetch episode list (HTML → typed)\n  viewer           Fetch free episode text\n  member           Fetch member profile\n  alarm-cnt        Fetch alarm count\n  curation         Fetch novel curation (writer's other novels)\n  emoticon-groups  Fetch emoticon groups owned by the logged-in user\n  emoticon-items   Fetch emoticons in a group owned by the logged-in user\n  export           Export a novel's data bundle (episodes, view counts,\n                   reviews) to CSV/JSON files\n```\n\nGlobal options:\n\n| Option               | Env var       | Default | Description                              |\n| -------------------- | ------------- | ------- | ---------------------------------------- |\n| `--login-key \u003cKEY\u003e`  | `LOGINKEY`    | —       | `LOGINKEY` cookie value.                 |\n| `--csrf \u003cTOKEN\u003e`     | `CSRF_TOKEN`  | —       | CSRF token for write endpoints.          |\n| `--delay-min \u003cMS\u003e`   | —             | `1000`  | Minimum inter-request delay (ms).        |\n| `--delay-max \u003cMS\u003e`   | —             | `3000`  | Maximum inter-request delay (ms).        |\n| `--format \u003cFORMAT\u003e`  | —             | `json`  | Output format (`json` or `csv`).         |\n\nAuthenticated endpoints read `LOGINKEY` (and `CSRF_TOKEN` for writes) from the\nenvironment, so you can avoid putting secrets on the command line:\n\n```sh\nexport LOGINKEY=\"...\"\nnpia reviews --novel 127306\nnpia export --novel 127306\n```\n\nThe `export` command produces the CSV/JSON handoff artifacts consumed by the\ndownstream analysis layer.\n\n## Development\n\n```sh\ncargo fmt --all --check\ncargo clippy --all-targets --all-features\ncargo test --all          # offline tests; live integration tests are #[ignore]d\n```\n\n## License\n\nLicensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumor-thrower%2Fnovelpia_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumor-thrower%2Fnovelpia_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumor-thrower%2Fnovelpia_api/lists"}