Skip to content

Instantly share code, notes, and snippets.

@nveenverma
Created June 14, 2019 07:12
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 nveenverma/2df3e99383170d9c8be3202db8271bba to your computer and use it in GitHub Desktop.
Save nveenverma/2df3e99383170d9c8be3202db8271bba to your computer and use it in GitHub Desktop.
# Using requests module for downloading webpage content
response = requests.get('https://stackoverflow.com/tags')
# Getting status of the request
# 200 status code means our request was successful
# 404 status code means that the resource you were looking for was not found
response.status_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment