Top "Python-requests" questions

USE ONLY FOR THE PYTHON REQUESTS LIBRARY.

Fetch a file from a local url with Python requests?

I am using Python's requests library in one method of my application. The body of the method looks like this: …

python http python-requests local-files
Changing the referer URL in python requests

How do I change the referer if I'm using the requests library to make a GET request to a web …

python python-2.7 python-requests referer
What is the difference between 'content' and 'text'

I am using the terrific Python Requests library. I notice that the fine documentation has many examples of how to …

python python-requests
Python (pip) - RequestsDependencyWarning: urllib3 (1.9.1) or chardet (2.3.0) doesn't match a supported version

I found several pages about this issue but none of them solved my problem. Even if I do a : pip …

python pip python-requests urllib3 chardet
Python requests speed up using keep-alive

In the HTTP protocol you can send many requests in one socket using keep-alive and then receive the response from …

python http python-requests python-sockets
Return a requests.Response object from Flask

I'm trying to build a simple proxy using Flask and requests. The code is as follows: @app.route('/es/&…

python proxy flask python-requests
How to measure server response time for Python requests POST-request?

I create requests POST-requests like this, where I specify timeout threshold: response = requests.post(url, data=post_fields, timeout=timeout) …

python python-3.x server network-programming python-requests
Python requests with multithreading

I've been trying to build a scraper with multithreading functionality past two days. Somehow I still couldn't manage it. At …

python multithreading asynchronous python-requests gevent
ValueError: malformed string using ast.literal_eval

I'm doing a loop to get json api, here is what I have in my loop: response_item = requests.request(…

python json string python-requests malformed
Try/except when using Python requests module

Doing some API testing and trying to create a function that given an inputted URL it will return the json …

python python-requests try-except