About 13,900,000 results
Open links in new tab
  1. Correct way to make a Python HTTPS request using requests …

    Your code is fighting the Requests library: you're doing a lot of stuff yourself that Requests will do for you. Firstly, don't form-encode your data yourself, let Requests do it by providing a …

  2. What is the proper way of using python requests, …

    Jun 30, 2021 · ...which shows that requests.get just calls requests.request with a hardcoded 'get' for the 1st argument. All the other parameters ( url , params , **kwargs ) are all just passed …

  3. Correct way to try/except using Python requests module?

    Aug 21, 2022 · When examining a non-None returned exception, requests.RequestException, the superclass of all the requests exceptions (including requests.ConnectionError), is not …

  4. Asynchronous Requests with Python requests - Stack Overflow

    Feb 2, 2012 · Purely synchronous requests (sync_requests_get_all) using the Python requests library; Synchronous requests (async_requests_get_all) using the Python requests library …

  5. How do I read a response from Python Requests? - Stack Overflow

    I have two Python scripts. One uses the Urllib2 library and one uses the Requests library. I have found Requests easier to implement, but I can't find an equivalent for urlib2's read() function. For

  6. How to make python Requests work via SOCKS proxy

    Sep 26, 2012 · In case someone has tried all of these older answers, and is still running into problems like: requests.exceptions.ConnectionError: …

  7. ImportError: No module named requests - Stack Overflow

    sudo pip uninstall requests sudo pip uninstall urllib3 sudo yum remove python-urllib3 sudo yum remove python-requests (confirm that all those libraries have been removed) sudo yum install …

  8. Python Request Post with param data - Stack Overflow

    requests can handle JSON encoding for you, and it'll set the correct Content-Type header too; all you need to do is pass in the Python object to be encoded as JSON into the json keyword …

  9. How to get Python requests to trust a self signed SSL certificate ...

    import requests url = "https://site-with-self-signed-certificate.org" # cert_path is the chain PEM file ...

  10. Timeout for python requests.get entire response

    Feb 23, 2014 · Note: The timeout param does NOT prevent the request from loading forever, it only stops if the remote server fails to send response data within the timeout value.