Created
February 5, 2020 04:34
-
-
Save gitcheckoutnikhil/7d740a1015d0683849a8f72396ef9c74 to your computer and use it in GitHub Desktop.
urllib3 usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib3 | |
http = urllib3.PoolManager() | |
r = http.request('GET', 'http://httpbin.org/robots.txt') | |
# Get status | |
r.status | |
# Get data | |
r.data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment