-1

For example, I want to download the latest WHO PDF on COVID-19. I'm really not sure how to do this.

If you type in 'who covid19 pdf' on Google, the pdf and link will come up.

I noticed that the links branch off from the main WHO domain name - maybe this can help?

Does anyone know how I can go about this?

AMC
  • 2,642
  • 7
  • 13
  • 35

1 Answers1

0

From Python's standard library, use the urllib package. Specifically the retrieve function. A succient example is recreated below from this reference.

import urllib

testfile = urllib.URLopener()
testfile.retrieve("http://randomsite.com/file.pdf", "file.pdf")
Conrad
  • 91
  • 2
  • 8