r/cloudcomputing • u/umen • May 18 '22
Running headless browser Efficiently and quickly which cloud computing to use ?
Hello all
i need to run headless browser and be able to scale it . the headless browser will generate PDF/images .
Im trying to do resserch on what factors should i take in account when selecting cloud vendor .
It will start small and hopfully will grow .
Thanks
3
Upvotes
View all comments
Show parent comment
1
u/iCvDpzPQ79fG May 21 '22
There appear to be a couple web APIs that allow you to convert web to pdf, but that’s another hoop to jump so I understand not wanting to go that route.
One example: https://pdfmyurl.com/wget-convert-html-to-pdf-example
Have you looked at curl or wget? Both allow downloading websites (I’m pretty sure they can do it recursively too). Then you can run it through a converter to get pdf. https://unix.stackexchange.com/questions/533886/is-there-a-command-line-tool-for-converting-html-files-to-pdf
To be fair, I live on Linux command lines so that’s where I’m leaning. IMO trying to automate a browser is going to be a nightmare. But if you can find a solution that’s browser based, go for it.