lorenzodifuccia / safaribooks

Download and generate EPUB of your favorite books from O'Reilly Learning (aka Safari Books Online) library.
Do What The F*ck You Want To Public License
4.61k stars 684 forks source link

Update documentation for SSO Login #317

Closed chenj-hub closed 1 year ago

chenj-hub commented 2 years ago

Added the following steps for SSO Login:

  1. Login as usual to https://learning.oreilly.com/
  2. Open the developer tools with F12
  3. Access the profile page in the browser: https://learning.oreilly.com/profile/
  4. Enter command in console: copy(JSON.stringify(document.cookie.split(';').map(c => c.split('=')).map(i => [i[0].trim(), i[1].trim()]).reduce((r, i) => {r[i[0]] = i[1]; return r;}, {})))
  5. Paste in cookie.json
kenspirit commented 2 years ago

Thanks for the tips. But should be cookies.json. :)