1import wget
2
3url = "https://www.python.org/static/img/python-logo@2x.png"
4
5wget.download(url, 'c:/users/LikeGeeks/downloads/pythonLogo.png')
1import requests
2url='https://pdfs.semanticscholar.org/c029/baf196f33050ceea9ecbf90f054fd5654277.pdf'
3r = requests.get(url, stream=True)
4
5with open('myfile.pdf', 'wb') as f:
6f.write(r.content)
1from pathlib import Path
2import requests
3filename = Path('4718.pdf')
4url = 'https://www.patersonnj.gov/egov/apps/document/center.egov?view=item;id=4718'
5response = requests.get(url)
6filename.write_bytes(response.content)
7