Verified Commit 1dad6c37 authored by insert's avatar insert

Add README.md

parent 1f774fdf
# pearson-succ
> This tool converts your Active Learn books to PDF format.
Pearson doesn't provide a PDF version of books because who needs convenience?
I made this because Active Learn is pretty pointless when on mobile, or better still when you have no internet.
## Usage
Before you can download, you need to specify the book URLs.
In `books.json` add entries such as: (there are existing entries which I have previously downloaded)
```json
{
// guide for getting URLs is below
"bookslug": {
"name": "book name",
"url": "https://pearson.not.epic/path/to/bookpage-{{id}}.jpg", // image url of book page, replace id with {{id}}
"pages": 5 // total number of pages
},
...
}
```
## Finding book URL
Open book viewer and right click any page, and inspect element:
![inspect element](https://owo.insrt.uk/faqdMNRLQPDAF8I2qA2UG.png)
Find and copy the URL that looks like this:
![element](https://owo.insrt.uk/-mTzgWaduuWIoIS_QaWXw.png)
Open the page, right-click the image, and press view image.
You should get a URL such as:
```text
https://resources.pearsonactivelearn.com/r00/r0000/r000000/r00000000/current/OPS/images/BOOK_TITLE-001.jpg
```
Replace `001` or whatever three-digit number with `{{id}}`.
In case you are lost, the page URL looks like:
```text
https://resources.pearsonactivelearn.com/r00/r0000/r000000/r00000000/current/OPS/BOOK_TITLE-001.xhtml
```
And you can change the URL above in two steps to get the image anyhow.
- Add `images/` after `/OPS/`
- Change `.xhtml` to `.jpg`
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment