How to download a webpage to pdf using HTTP Request?

I need to download a webpage as PDF. There is an option to send Hotkey(Ctrl+P). But since I have thousands of PDF’s to be downloaded, I was thinking if there could be an easier solution. Maybe any packages to do it?

If anyone could suggest me a better solution, it would be great!!!

@vvaidya… Can you please take a look at this?