Skip to content

Instantly share code, notes, and snippets.

@gitcheckoutnikhil
Created February 5, 2020 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitcheckoutnikhil/7d740a1015d0683849a8f72396ef9c74 to your computer and use it in GitHub Desktop.
Save gitcheckoutnikhil/7d740a1015d0683849a8f72396ef9c74 to your computer and use it in GitHub Desktop.
urllib3 usage
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