View Single Post
Old 07-12-2024, 05:24 PM   #11
sydmalicious
Cantankerous Contrarian
sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.
 
sydmalicious's Avatar
 
Posts: 153
Karma: 506950
Join Date: Mar 2014
Location: Hershey, PA, US
Device: Kobo Sage 32gb, Kindle Paperwhite, Pixel 7 Pro, M1 iPad Pro 12.9
Yeah. If you still want to use JavaScript, you could use something like Puppeteer which is a headless Chromium web scraper, much like Selenium and Beautiful Soup for Python. In fact using Puppeteer if you're wanting to keep it JavaScript would probably save you some time and headaches.

I wrote a broken script for Puppeteer which is in this GitHub gist, just to give you a feel for how it works: https://gist.github.com/twhite96/38b...05de2990dcbb9c

I am not sure how to share the automation with the community though. Maybe the creator of Calibre has some ideas? I think I have his name right but don't want to misspell it in this comment.

The docs are here: https://pptr.dev/

Last edited by sydmalicious; 07-12-2024 at 05:25 PM. Reason: Context for links
sydmalicious is offline   Reply With Quote