I am learning python and am working on API/webscraping. I have an exercise which seems to be giving me difficulty on the first steps. Ultimately, I am ...
I am learning python and am working on API/webscraping. I have an exercise which seems to be giving me difficulty on the first steps. Ultimately, I am ...
Am having issue sending xml request in pthon because i don't know how to render python code in xml. I have no idea how to render or navigate xml text ...
I need to save files from request, the POST request should contain a picture file and its informations in json all uploaded in a folder. exemple : ...
I have a package with a bunch of classes that act as wrappers for other systems. For example: I also have integration tests: I now want to mock ...
I have a function call an api to get an access token : I want to test this function with pytest and verify the try/except block. Here is my test fu ...
How to loop next parameter pages How to bring this value to the next loop parameter? =>> "next": "/api/v2/intelligence/?q=%28%28status%3D% ...
Am getting an error with below code. How can i get this error resolved Error How do i resolve this error. amount is a field in Payment model ...
I'm trying to figure out how to scrape/extract a image url out of response.content. This is the url I'm trying to extract <img src="/Content/image ...
The following part of my code is supposed to do exception handling during HTTP requests. app.py To simulate different exceptions, I have come up w ...
I used Python Requests before and but i had facing this 404 problem only this specific site Which is Jiomart.com When i Try to sent requests from my l ...
In Python it's really common to use requests library to make your HTTP requests. import requests r = requests.get('http://google.com') print(f"Code: ...
I'm attempting to implement/test request retrying within my module - below is a scratch which has the base functionality of what I'm trying to accompl ...
Hey I've just started to use Python 3.8 and I get bug for the last line. It works perfectly on python 3.6 how cam I make it work on Python 3.6? in ra ...
I am trying to mock an external API using the responses library. I want to check I've passed my params correctly in my request, so I am using this min ...
I'm logging in on to a webpage using the Session in Python, where the 2FA is enabled. By using the above code I'm able to log in to the webpage s ...
I am facing a strange problem, I dont know much about for my lack of knowledge of html. I want to download an excel file post login from a website. Th ...
I'm working in an application which has SAP RFC which returns doc files as XSTRINGs. And also there is a client application written in python that sen ...
I am sending a Put request to Rest Api to update user information based on username, and it gives following error API brief as follow I create m ...
I am able to parse json ressponse when there are multiple "nodes" of what I am looking for, but when only one node is returned by the API, I am gettin ...
I am trying to use the responses module to mock an HTTP server and I have the feeling it is broken when calls requests are multi-threaded. Consider t ...