Skip to main content

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
-2 votes
1 answer
50 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 = {'...
Martha Imoh's user avatar
-3 votes
0 answers
331 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 ...
Vladi's user avatar
  • 1
0 votes
0 answers
36 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 ...
dj_tech's user avatar
  • 13
0 votes
0 answers
7 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....
max_max_mir's user avatar
  • 1,636
0 votes
0 answers
18 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 ...
Rishav Pahuja's user avatar
0 votes
0 answers
8 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 ...
Chirag Goel's user avatar
-8 votes
0 answers
33 views

im trying to make a python post request but i end up getting a java scrip error from the site can anyone help me please [closed]

im trying to make a post request and the web site give me this error : Requires JavaScript to sign in. This web browser either does not support JavaScript, or scripts are being blocked. how can i fix ...
gianni1845's user avatar
-1 votes
1 answer
31 views

Page loads in a browser but gives 404 error in python requests library

I've seen similar questions but none of the solutions work for my case. I found a link that allows me to download csv file with the data in Tableau dashboard. When I open this link in a browser, it ...
just_learning's user avatar
-3 votes
1 answer
45 views

I get an error with requests only when using venv

It was working fine until yesterday, but suddenly it's not working. When using virtualenv, I get an error when using requests to make a response. When using the global Python, it works fine. Why is ...
ahhu's user avatar
  • 13
0 votes
0 answers
15 views

Problem with IGDB API getting game info from url

I've been trying out the IGDB API with python only just recently but I've run into an issue with getting game info. In many cases I only have the IGDB url available for what I'm trying to do, and not ...
TCombu's user avatar
  • 3
0 votes
0 answers
17 views

Exporting a Windows Store cert in Python

I have a user certificate in the Personal/My Windows Store with an exportable private key. I am trying to export this in Python to use as .cer/.pem and secret key files in an API request. I have toyed ...
Matt M's user avatar
  • 1
1 vote
0 answers
34 views

Python requests.post Returns 401 Status Code

I am trying to open a betslip for a specific event and bet type type (as outlined in section 4.2.1 here https://api.mollybet.com/docs/api/available-requests/betslips-requests). I was able to login ...
Indeterminate's user avatar
0 votes
0 answers
20 views

Issues with large file download using pycurl resulting in "502 Bad Gateway" error

I'm currently facing an issue with pycurl while trying to download a somewhat large file from a remote server. Despite trying different methods, I consistently encounter a "502 Bad Gateway" ...
stillQuestioning's user avatar
0 votes
1 answer
57 views

How to join the URL after changing the query using python requests

After URL.replace URL has been divided into two parts. Replaced query has been in text format, hence it's not a proper URL. I would like to fix it. As it's an invalid UTL got 404 error: ERROR: ...
Siya's user avatar
  • 297
1 vote
0 answers
52 views

Response ended prematurely while scrapping web page inside cronjob

I created Cronjob to execute the Script every 24 hours, I noticed that this error occurs when the code compiles itself during the cron process on the local machine I did not notice this problem. ...
Giggest's user avatar
  • 134

15 30 50 per page
1
2 3 4 5
1474