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.

19,667 questions
0 votes
0 answers
9 views

Using python requests library to get certificate expiry without verification

Currently using requests library to try and get certificate expiration information. When I do this with "verify = True" tag, I receive an SSL error. When I do this with "verify = False&...
0 votes
0 answers
17 views

traceback in python3 too verbose

im using this block to test authentication and would like to know if you guys have a trick to only display "Failed to establish a new connection: [Errno 61] Connection refused'" for example. ...
0 votes
0 answers
6 views

Tubular Labs API - using a scroll_token to page through results?

I'm using the Tubular Labs API docs (unless you have a login you unfortunately can't access the docs) but an example response looks like this for their video.search endpoint: response = {'ok': True, '...
0 votes
0 answers
9 views

How to download a file from different url if the current url fails without restarting from beginning

i have an api which returns the url of a file that i want to download, but the link expires after 10-15 min so when the link dies is there anyway to change the dead url and download it from a new one, ...
0 votes
1 answer
18 views

problem finding links in all li tag under ul tag

I'm trying to get the links in all li tags under the ul tag HTML code: <div id="chapter-list" class="sbox" style=""> <ul> <li> <a href="
0 votes
1 answer
18 views

Can't connect to specific API from python code using 'requests' library

I am trying to get my python code to connect to a specific API following below guide: I can make it work from a Linux CLI as specified, ...
0 votes
0 answers
12 views

SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2396)'))

'''HTTPSConnectionPool(host='i.xxxx.com', port=443): Max retries exceeded with url: /rupload_video/1654677618121_0_6985510698 (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (...
0 votes
0 answers
17 views

Can I "transfer" session from reqeust.session to selenium.webdriver

I use with reqeust.session and reqeust post to send some data to the server. I want to transfer the session from the reqeust to selenium and after that open the selenium browser and continue to use. ...
0 votes
2 answers
24 views

"Cannot allocate memory" requests_html

I have a script similar to the one below. It is located on a server with 0.5 GB of RAM. After about a day of stable operation, this error appears: [Errno 12] Cannot allocate memory. I believe that I ...
0 votes
1 answer
15 views

Error when accessing incorrect url in python requests

import requests url = "" res = requests.get(url) if res == 200: print("ok") else: print("wrong") As shown in the code above, I want to ...
0 votes
0 answers
13 views

Zeep opens a connection, and then nothing else happens. Except the eventual timeout

I'm at a loss at what is happening here. I'm new to using Zeep (suddenly had to implement SOAP requests, and the request library isn't as tuned for this as Zeep...). I was able to get the tutorials ...
0 votes
1 answer
15 views

BeautifulSoup - Why am I getting an empty list as a result?

Why does my code result in an empty list? It's as if the page is too big and it doesn't parse it all... could it be the case? from bs4 import BeautifulSoup source = requests.get('
0 votes
0 answers
10 views

Python download file when specified cookies, headers and params

My idea is the following: import requests cookies = { 'SEARCH_SAMESITE': 'xxx' # And some other cookies } headers = { 'authority': 'patents.google.com' } params = { 'q': 'data', '...
0 votes
0 answers
16 views

Post method returns 422 using Requests but working fine with CURL and Postman

I am using Python with Requests module to connect to an EasyRedmine API. I'm having trouble creating a project using the post method in order to post a JSON. It returns "[Unprocessable Entity <...
0 votes
1 answer
32 views

Json unable to get value without quote [closed]

I'm trying to get the value that is not in double quote( Volume and Quote asset volume). others value with quote works perfectly. The error is " Volume = item([5]) TypeError: 'list' object is ...

15 30 50 per page
1
2 3 4 5
…
1312
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest