download webpages like a pdf file, but instead of donwload It manually and convert It in the adobe, I'd like to automate It with python.
2. After some searchs I found a libcalled pdfkit, but to It works It would need to install a app, but I don't want It, I want a program that could run in the Windows / Linux and googlecolabnotebook
3. So could someone suggest an alternative? Is there another alternative? Thx
I tryed something with this code:
# --- Get Url:
url = "https://www.irishtimes.com/news/science/euler-a-mathematician-without-equal-and-an-overall-nice-guy-1.4455424"
re = get(url)
# --- Writing the file:
pdffile = open("Euler.pdf", "wb")
pdffile.write(re.content)
Have you tried PyQT5? https://stackoverflow.com/a/63290662
Обсуждают сегодня