Download html pages as pdf using headless Chrome

2022-01-29 Thread Aadil Rashid
Hello Django Family, I came across the problem of downloading HTML pages as pdf using headless chrome, Can anybody here who could please let me know how can I do it or any good resource to follow, it would be appreciable. I am using Django python, Thank you very much. -- You received this message

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Vishesh Mangla
Use requests for that . On Sat, 29 Jan 2022, 21:28 Aadil Rashid, wrote: > Hello Django Family, I came across the problem of downloading HTML pages > as pdf using headless chrome, Can anybody here who could please let me know > how can I do it or any good resource to follow, it would be appreciab

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Vishesh Mangla
Get the link and cookies from the webdriver and put that in requests.get using request library to download the html on the page. On Sat, 29 Jan 2022, 21:29 Vishesh Mangla, wrote: > Use requests for that . > > On Sat, 29 Jan 2022, 21:28 Aadil Rashid, wrote: > >> Hello Django Family, I came acros

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Aadil Rashid
from request.get("https://---";) i am getting instance of requests.models.Response, how can i convert it to pdf On Sat, Jan 29, 2022 at 9:31 PM Vishesh Mangla wrote: > Get the link and cookies from the webdriver and put that in requests.get > using request library to download the html on the pag

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Vishesh Mangla
If it's a pdf then u can download the bytes. So search Google/stackoverflow for "requests download bytes". On Sat, 29 Jan 2022, 21:44 Aadil Rashid, wrote: > > from request.get("https://---";) i am getting instance > of requests.models.Response, how can i convert it to pdf > > On Sat, Jan 29, 202

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Kasper Laudrup
On 29/01/2022 16.58, Aadil Rashid wrote: Hello Django Family, I came across the problem of downloading HTML pages as pdf using headless chrome, Can anybody here who could please let me know how can I do it or any good resource to follow, it would be appreciable. I am using Django python, You

Re: Download html pages as pdf using headless Chrome

2022-01-29 Thread Aadil Rashid
Hello, Kasper Laudrup I really appreciate your idea, but i need to get this done only by using headless chrome. On Sat, Jan 29, 2022 at 10:40 PM Kasper Laudrup wrote: > On 29/01/2022 16.58, Aadil Rashid wrote: > > Hello Django Family, I came across the problem of downloading HTML pages > > as p

Syntax to Generate salary for next month

2022-01-29 Thread Feroz Ahmed
Hi, I came across the problem, how to generate salary for upcoming month ( records are of month January in db) I have records in django db. Insert of new record update / delete / hideof record functions are ok Request your support, to generate the salary for month February (by cl