cambridge-reader-scraper
v1.7.2
Published
CLI to inspect and reconstruct Cambridge Reader books
Readme
Cambridge Reader Scraper
Rebuilds Cambridge Reader and Cambridge GO books into PDFs.
Quickstart
Download the compose file:
mkdir scraper
cd scraper
curl -fsSLO https://raw.githubusercontent.com/kk-spartans/cambridge-reader-scraper/main/devops/docker-compose.ymlCreate .env:
[email protected]
CAMBRIDGE_GO_PASSWORD=your-passwordRun it:
docker compose run --rm scraperThe scraper starts CloakBrowser automatically, logs into Cambridge GO, shows a book picker, and writes PDFs to ./out. I know it's slow, will work on it later.
Supplementary audio/video files declared in the book manifest (or found alongside the pages) are saved next to each PDF in a <book>_media/ folder. Pass --skip-media to skip them.
Development
Requires devenv, Nix, and Docker.
git clone https://github.com/kk-spartans/cambridge-reader-scraper
cd cambridge-reader-scraper
devenv shellThe devenv provides arion and docker-compose. The dev composition is declared in devops/arion-compose.nix and builds the scraper image with Nix (devops/docker.nix).
Create .env as above, then run:
devenv tasks run cambridge-reader-scraper:scrapeor directly:
arion -f devops/arion-compose.nix -p devops/arion-pkgs.nix run --rm scraperBuilding the Docker image
nix build .#docker
docker load < result