Category "python-requests"

Calling a REST API with Api Id and key using Python

I am trying to send a request to get a token to an API. curl -X POST "https://base_url/token" -H "accept: application/json" -H "Content-Type: applicatio

How to return a marshalled JSON that has a nested property?

Fellow programmers from SO! I am building a simple Spring Boot example just to add a Client using a RESTful API. I have written this Controller: import org.spri

How to iterate sample users along with endpoint & payload while calling each API post request

Original question link: There are two functions: ReadInp() -> Dict[str, str] This reads a csv and returns a dict with a url as key and a payload as the value

Zipfile can't open a file-like object streaming in request.raw

When I want to decompression a zipfile from internet, there is a error like zipfile.badzipfile: file is not a zip file. here is my code: response = requests.get

Python-3 Minecraft UUID to Username using the Requests library

I am wondering if it is possible to take a minecraft UUID and convert it into the users current username. I know how to get all of there previous usernames, but

Need help parsing link from iframe using BeautifulSoup and Python3

I have this url here, and I'm trying to get the video's source link, but it's located within an iframe. The video url is https://ndisk.cizgifilmlerizle.com... i

positional argument error in sheduling task in python

I got a positional argument error when i tried running my code and the do() passes extra arguments to the job function import schedule from schedule import Sche

GET requests to Zendesk API fail using Python 3.x with the HTTP code 401 Unauthorised

I'm simply testing out the capabilities of Zendesk API with the intention of creating a ticket-based Slack application but I cannot seem to get past the simple

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