Category "python-requests"

Python: FastAPI error 422 with post request

I'm building a simple API to test a database. When I use get request everything works fine, but if I change to post I get "unprocessable entity" error: Here is

"RecursionError: maximum recursion depth exceeded" from ssl.py: `super(SSLContext, SSLContext).options.__set__(self, value)`

I am using Python 3.6.5 on the following remote server setup: Server: Windows 10 Python: 3.6.5 Requests: 2.18.4 Pentaho: 8.0 When I run

"RecursionError: maximum recursion depth exceeded" from ssl.py: `super(SSLContext, SSLContext).options.__set__(self, value)`

I am using Python 3.6.5 on the following remote server setup: Server: Windows 10 Python: 3.6.5 Requests: 2.18.4 Pentaho: 8.0 When I run

Cannot get an advanced stats from IEX Cloud API

Cannot get the advanced-stats from IEX Cloud. Could you please help me to resolve this tackle? Just to clarify, it works for stats, quotes etc. import requests

Not able to replicate AJAX using Python Requests

I am trying to replicate ajax request from a web page (https://droughtmonitor.unl.edu/Data/DataTables.aspx). AJAX is initiated when we select values from dropdo

Not able to replicate AJAX using Python Requests

I am trying to replicate ajax request from a web page (https://droughtmonitor.unl.edu/Data/DataTables.aspx). AJAX is initiated when we select values from dropdo

Pulling company name from webpage within <a> tag

I am trying to streamline my data collection by using Python 3.7 and BeautifulSoup to pull company name, if that company is approved or other, and if they are m

Getting ('Connection aborted.', OSError(0, 'Error') errors with python requests

I'm trying to write code to login to a website. First I tested using ARC. It works fine. Image So I wrote python code like this: import requests url = 'htt

Getting ('Connection aborted.', OSError(0, 'Error') errors with python requests

I'm trying to write code to login to a website. First I tested using ARC. It works fine. Image So I wrote python code like this: import requests url = 'htt

C# run python script from virtual environment

I am trying to run python script in c# with process. private void RunScript() { ProcessStartInfo processStartInfo = new ProcessStartInfo("python.exe", "c:\\

How to make request without blocking (using asyncio)?

I would like to achieve the following using asyncio: # Each iteration of this loop MUST last only 1 second while True: # Make an async request sleep(1

Python flightradar24.api list iteration

Good evening, Trying to iterate over a list that scraped from flightradar24 api package. Currently using these 2 lines for example : flights = fr_api.get_flight

Python Requests - ChunkedEncodingError(e) - requests.iter_lines

I'm getting a ChunkedEncodingError(e) using Python requests. I'm using the following to rip down JSON: r = requests.get(url, headers=auth, stream=True) And t

Download a captcha image without an extension

How I can download this captcha image with PIL or another image manipulation library, I tried several ways but I can't download the image. from PIL import Imag

Failed to establish a new connection: [WinError 10060] A connection attempt failed

I created a simple python app that has a client part that accesses (uses the requests library) another app (api app) using Flask library to get data. Everything

How can i find all channel ids?

def SpamRequest(): channel_id = random.choice(channel_ids) r = requests.post(f"https://discord.com/api/v9/channels/{channel_id}/messages", data=payload,

How to use Python requests to perform NTLM SSPI authentication?

My goal is to authenticate my client that uses the requests library (2.11.1) in Python 3.5.2 through NTLM with SSPI so that the user does not have to manually e

Log into WSJ using Python requests

I am trying to log into the Wall Street Journal's website using the Python module requests. I know that other people on these boards here have successfully used

How would I go about incorporating an if statement in item list?

I need to find the phone numbers in this website, I have come to the conclusion that I need to write an If statement but I'm not really sure how to do that sinc

Send asynchronous HTTP requests one after another

I am trying to use aiohttp to send requests one after another like this import aiohttp import asyncio from datetime import datetime async def main(): requ