diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-23 08:36:25 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-23 08:36:25 +0300 |
| commit | 594955bdff1e29b649ffde7ab85146d14021adcc (patch) | |
| tree | ece2487553887a840edb243b1179b701606868f3 | |
| parent | ef0707edb766a773f7c86133ad75d35f5cfed2c8 (diff) | |
| download | oreilly-epub-master.tar.gz oreilly-epub-master.zip | |
This is because the old method does not include the `HttpOnly` cookies
in some cases (possibly a Chrome issue?).
Closes GitHub #2.
| -rw-r--r-- | README.md | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -99,14 +99,16 @@ The file is a **flat JSON object**: cookie name → cookie value. } ``` -> Tip: You can obtain the cookies for `learning.oreilly.com` from your -> browser's developer tools by visiting the website and running the command -> below in the console. Write down the output to `cookies.json` and keep the -> file private. +You can follow the steps below to create the file. Make sure to keep the file private. -```js -JSON.stringify(document.cookie.split(";").map(c=>c.split("=")).reduce((r,[k,v])=>({...r,[k.trim()]:v?.trim()}),{})) -``` +1. Login as usual to [https://learning.oreilly.com/](https://learning.oreilly.com/). +1. Open the developer tools with F12 or Ctrl-Shift-i. +1. Go to the Network tab in the developer tools. +1. Access the profile page in the browser: [https://learning.oreilly.com/profile/](https://learning.oreilly.com/profile/). +1. In the Network tab, click on the request to /profile/ (should be the first one). +1. Click on the Cookies tab in the request information. +1. Right-click on the Request cookies text and choose Copy All. +1. Paste this into the cookies.json file and remove the quotes surrounding the JSON. ### Config directory |
