Oddbean new post about | logout

Notes by 5c675fe7 | export

 @b4c50e1b 

I moved to DuckDuckGo a while ago, not for ideological reasons, but simply because it gives me, more often, what I am looking for.

One day I complained loudly at home that I was searching for maths related things, but was getting adverts for socks, and my young son demonstrated to me that DuckDuckGo gave me what I wanted. 
 nostr:npub1ez3yya8tpgge7lk4jq2zxz0cj3d2mcgev9mffd4ec7tfy84hre4suexnxl Hah !!  Now it works in Fir... 
 @1280dda4 It worked for me immediately on Firefox, which is the only browser I use, except in the above circumstance. It ust have been a glitch. 
 @1280dda4 I don't use google-chrome, but on linux (Ubuntu 22.04) I use it in one script to print an html page to pdf.

Assuming that you have loaded the html with wget, you can do

$ google-chrome --headless --print-to-pdf="file.pdf" file.html 
 @1280dda4 You actually don't need to do wget first.

See https://developer.chrome.com/blog/headless-chrome/ 
 Is there a way to invoke firefox from shell to:

(a) open a specific URL;

(b) save the page when... 
 @1280dda4 I don't use google-chrome, but on linux (Ubuntu 22.04) I use it in one script to print an html page to pdf.

Assuming that you have loaded the html with wget, you can do

$ google-chrome --headless --print-to-pdf="file.pdf" file.html