Questions tagged [python-requests]
USE ONLY FOR THE PYTHON 'REQUESTS' LIBRARY. Requests is a full-featured Python HTTP library with an easy-to-use, logical API. DO NOT USE THIS FOR ANY GENERIC QUESTION ABOUT PYTHON.
python-requests
22,117
questions
-1
votes
0
answers
8
views
Azure Price Sheet API returning 404 error
I want to fetch the pricesheet for the Azure items on my subscription, considering any potential discounts. I understood from the API documentation, that using the billing period method would return ...
0
votes
0
answers
12
views
When parsing data inside POST request body, what is the difference between using 'request.form' and 'request.get_json()'?
Situation description:
@app.route('/auth/audio/save', methods=['POST'])
def save_audio():
# files = request.files
resp_dict = {'message': "success"}
file = request.files.get(&...
0
votes
0
answers
26
views
How to send a request inside Script/Post Response code of Bruno
Need to migrate the following code from Postman to Bruno. Into the Postman Post-response I have this request:
pm.sendRequest({
url: `${lambdaUrl}/finxact/accountnumber/${psnNumber}`,
method: '...
0
votes
0
answers
14
views
Unable to fetch basechain transcation
I created a wallet using this code :
from eth_account import Account
# Create a new Ethereum wallet
account = Account.create()
private_key = account.key.hex()
address = account.address
print("...
0
votes
1
answer
28
views
https-post request using requests in micropython on esp32s3
I'm trying to write to the Mongodb database. When I make the request, I get the error HTTP error: BadStatusLine: []. i am using ESP32S3 with Micropython v1.23.0.
my code:
import json
import requests
...
0
votes
1
answer
37
views
The python requests module , how to check if a page using the 'POST' method or 'GET' method
How to use the Python "requests" module to check if the page is using the "GET" method or the "POST" method.
I expect output to be True or False, or GET or Post.
Expected ...
-2
votes
0
answers
36
views
Can't show html button "update" on saved page after making request with python "requests" module
I made a Python code using requests and requests_toolbelt modules.
The code get HTML response from webpage behind login and I save HTML response in page.
Then I open it with web browser, so I don't ...
1
vote
1
answer
18
views
Requesting worksheet cell values using Graph API + Python
Below is a snippet of my code. Using the requests library.
url = 'https://graph.microsoft.com/v1.0/sites/' + siteid+ '/drive/items/' + itemid + 'workbook/worksheets/Sheet1/range/cell(row=5,column=6)'
...
0
votes
1
answer
35
views
Missing `Retry-After` in reponse header in Spotify API
I'm using Python requests to get some info from Spotify API, After some requests, I encountered the 429 error, which indicates that the request limit has been exceeded. It is written in the Spotify ...
-3
votes
1
answer
65
views
How do I fix my code, it is returning an empty list?
I am scraping an ecommerce website and its returning an empty list
This is the code I wrote.
import requests
from bs4 import BeautifulSoup
baseurl = 'https://www.thewhiskyexchange.com/'
headers = {'...
-3
votes
0
answers
1k
views
Python: How can I upvote a comment with requests post?
My code to vote on a comment is not working correctly. It returns an http 500 error.
I have a Python program that logs in with a user and which is supposed to automatically upvote a comment.
The code ...
0
votes
0
answers
42
views
Issues with `requests` between Python versions
I'm currently working on some issues on a project not developed by me, investpy.
In the search.py file, at line 157 (function search_quotes), I get a ConnectionError (not raised by requests, but ...
0
votes
0
answers
9
views
414 Request-URI is too large
The below code works fine from outside of a docker container
import requests, browsercookie
cookie = browsercookie.chrome()
response = requests.get(url, cookies=cookie, verify=False)
print(response....
0
votes
0
answers
22
views
Why do I get Error while a Get request to url through Python Requests Lib
I am using requests library to get html content from a URL in which I have to pass consignment numbers comma separated which can be max 25 so when I send only 25 it works but when I send it in a loop ...
0
votes
0
answers
11
views
How do I acccess the Bright data proxies response headers
I am using Bright data as the proxy proivider along with python requests.session. I am directly making proxy requests to the proxy zones so it can randomly pick it up, now what I want is to know which ...