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/ff1bdfb133c7858879c200638f66add7 to your computer and use it in GitHub Desktop.
Save nveenverma/ff1bdfb133c7858879c200638f66add7 to your computer and use it in GitHub Desktop.
# Using requests module for downloading webpage content
response1 = requests.get('https://stackoverflow.com/questions?sort=votes&pagesize=50')
# 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
response1.status_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment