python requests library how to turn repose to integer code example
Example: python print return code of requests
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404