Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

jyooru/pearson-pdf

Repository files navigation

pearson-pdf

PyPI - Python Version PyPI Downloads ci codecov License

Tool to download Pearson books as PDFs.

Installation

Install pearson-pdf using pip.

pip install pearson-pdf

Usage

To download a PDF, you'll need to get the book's ID:

  1. Open up DevTools in your browser.
  2. Navigate to Console.
  3. Type in:
    window.foxitAssetURL;
    If this command returns undefined, this tool is not able to download your book. See #175 for more information.
  4. Copy that URL.
  5. Download your URL as a PDF to output.pdf using pearson-pdf:
    pearson-pdf https://example.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/foxit-assets output.pdf

More information on usage is in the help page:

pearson-pdf -h

License

See LICENSE for details.