- Install Chrome Extensions:
- Create the download script:
- Log in to Learning Oreilly and use the
Get Cookies.txt Extension
to download the current cookie with all the browser and login information. - Use
WebScrapBook Extension
, menu entryBatch capture selected links
to create a list of websites to download and copy them to the download scriptdl.sh
. Do not forget to download theindex.html
page. Only directory needed not theindex.html
file itself. - Run the download script:
$bash dl.sh
- When loading the
index.html
file from the local storage system you can remove some useless DOM elements from the webpage by right-clicking and selecting the Tampermonkey entry.
- Tampermonkey
- Tampermonkey is in the repository for reference and can be loaded into the extension.
Tampermonkey
->Dashboard
-> Click+
to create the script. - In the Tampermonkey advanced settings you have to enable local file access:
Settings
->Security
->Allow scripts to allow local files
->All local files
-> PressSave
button.