Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use retrieve() in python3 code #55

Open
tintinmj opened this issue Jul 12, 2019 · 1 comment
Open

How to use retrieve() in python3 code #55

tintinmj opened this issue Jul 12, 2019 · 1 comment

Comments

@tintinmj
Copy link

Can a example be given how to use recipes/Python/577009_Improvements_urllibURLopenretrieve/recipe-577009.py in actual code?

@PrithiPal
Copy link

On python2, it can be used through urllib.URLopener().retrieve('EXAMPLEURL'). However in python3, either urllib3 or requests (https://stackoverflow.com/questions/2018026/what-are-the-differences-between-the-urllib-urllib2-urllib3-and-requests-modul?rq=1) is used. Official recommendation is to use either of these two http libraries in py3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants