python-requests Questions

14

Solved

What's the best way to download a python package and its dependencies from pypi for offline installation on another machine? Is there any easy way to do this with pip or easy_install? I'm trying to...
Staggers asked 18/6, 2012 at 21:51

4

Solved

Hy am using Python RegEx to show all internet wirless profiles connected to a computer.There is error (TypeError: cannot use a string pattern on a bytes-like object) in my Second last line pls anyo...
Bringingup asked 10/5, 2020 at 23:49

15

How to send a multipart/form-data with requests in python? How to send a file, I understand, but how to send the form data by this method can not understand.
Hessian asked 12/9, 2012 at 9:33

1

Solved

Background I have a python app, built using requests, that is used to upload files from client sites to a web server, using POST. These files are usually small (1-300 KB), but sometime larger (15-2...
Leprosarium asked 6/1, 2022 at 19:52

9

Solved

I'm using the Python requests library to get a PDF file from the web. This works fine, but I now also want the original filename. If I go to a PDF file in Firefox and click download it already has ...
Bonnibelle asked 4/8, 2015 at 8:54

11

I would retrieve some information from an ABB G13 gateway that offer a RESTful JSON API. API is hosted by the gateway via https endpoint. Basic authentication mechanism is used for authentication. ...
Haggadah asked 29/10, 2015 at 9:38

6

I use this program to get the json data from https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY but since this morning it's not working as it returns <Response [401]>. The link lo...
Professorship asked 20/9, 2020 at 16:43

4

Solved

I want to send a value for "User-agent" while requesting a webpage using Python Requests. I am not sure is if it is okay to send this as a part of the header, as in the code below: debug = {'verbo...
Garget asked 15/5, 2012 at 17:48

2

Solved

I have the requests module installed on my system. pip install requests Now I am trying to import requests in the rpel import requests It fails with the following error Traceback (most recen...
Fourinhand asked 23/3, 2016 at 14:35

6

I need to keep making many requests to about 150 APIs, on different servers. I work with trading, where time is crucial. I cannot waste 1 millisecond. The solution and problems I found were these: ...
Popup asked 20/7, 2019 at 15:50

3

I have a python script that loads a csv file from a server via https. I'm behind a corporate proxy, so I need to provide that info to the script. Let proxy_dict = {"https://user:[email prote...
Hawkbill asked 13/7, 2018 at 12:51

8

Solved

I've installed a self-signed root ca cert into debian's /usr/share/ca-certificates/local and installed them with sudo dpkg-reconfigure ca-certificates. At this point true | gnutls-cli mysite.local ...
Damien asked 23/3, 2017 at 16:44

4

I am currently doing a HTTP Post request to a server in Python 2.7 with requests.post() which takes around 700ms. There is also absolutely no proxy server which could cause delays but still I am by...
Madaras asked 30/7, 2018 at 18:53

4

Solved

I'm struggling to access a streaming API using Python and Requests. What the API says: "We’ve enabled a streaming endpoint to for requesting both quote and trade data utilizing a persistent HT...
Diplosis asked 23/7, 2013 at 22:49

6

Solved

In my project I'm handling all HTTP requests with python requests library. Now, I need to query the http server using specific DNS - there are two environments, each using its own DNS, and changes...
Navarro asked 24/3, 2014 at 12:28

7

Solved

I'm using requests to communicate with a django app but When I try requests.get('https://mysite.com', verify=True) I get the error: hostname 'mysite.com' doesn't match either of '*.myhost.co...
Buckshot asked 2/9, 2013 at 17:43

4

Solved

I'm using the python requests module to send a RESTful GET to a server, for which I get a response in JSON. The JSON response is basically just a list of lists. What's the best way to coerce the r...
Kelleekelleher asked 1/6, 2013 at 21:26

5

Solved

I am trying to fetch as rows the different values inside each href element from the following website: https://www.bmv.com.mx/es/mercados/capitales There should be 1 row that matches each field on ...
Lactary asked 14/2, 2024 at 4:39

2

Solved

I occasionally use res.content or res.text to parse a response from Requests. In the use cases I have had, it didn't seem to matter which option I used. What is the main difference in parsing HTML...
Adigranth asked 20/10, 2016 at 19:52

3

Solved

I am using the terrific Python Requests library. I notice that the fine documentation has many examples of how to do something without explaining the why. For instance, both r.text and r.content ar...
Asquith asked 9/6, 2013 at 15:51

7

Solved

I'm working on a project that involves connecting to a remote server, waiting for a response, and then performing actions based on that response. We catch a couple of different exceptions, and beha...
Derzon asked 29/7, 2015 at 23:49

18

Python is saying several packages I installed with pip "ImportError: no module named requests" When running pip install requests > sudo -H pip install requests Requirement already sat...
Schexnayder asked 27/7, 2017 at 8:32

4

Solved

I try to create SOAP Client with the help of zeep lib for python import os from zeep import Client from zeep.wsse.signature import Signature key_filename = "/etc/ssl/certs/cert.key.pem" cert_file...
Yeager asked 23/3, 2017 at 13:26

2

Solved

I was looking at the Github API and it allows you to fetch all repository invites through an API endpoint (see https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository)....
Northerner asked 17/4, 2020 at 16:36

2

Solved

I have this curl: curl -v "http://some.url" \ -X PUT \ -H "X-API-Key: API_KEY" \ -H 'Accept: application/json' \ -H 'Content-Type: multipart/form-data' \ -F "logo=@the...
Grief asked 9/7, 2021 at 16:6

© 2022 - 2025 — McMap. All rights reserved.