Questions tagged [pycurl]

PycURL is a Python interface to libcurl.

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features.

609 questions
0
votes
1 answer

Converting a cURL to pyCurl equivalent

I have a Patch request using cURL, now i want to use this with python: curl -X Patch -H "content-type: application/json" -d '{"activation": {"mode":"activate_immediate"},"transport_params":[{"destination_ip":"239.255.255.50","destination_port":…
user8886245
0
votes
2 answers

python html scraping result of JS function

I'm trying to scrape a web page with JS script executed on it. I can get the HTML with the none executed JS using from requests import get But I can't have the JS function result like when I inspect the webpage with mozilla here the function I would…
Mat Mat
  • 3
  • 2
0
votes
1 answer

How can I set source IP to send traffic in Python

I have a script that sends traffic to a server. It marks incoming traffic as known location traffic for a specific IP. My script sends traffic via Pycurl. I cannot change Pycurl for now, so is there any way to send traffic by sending that specific…
0
votes
1 answer

Python get list of csv files in public GitHub repository

I am trying to pull some csv files from a public repository using Python. I have the code to process the data after I have the files' URL. Is there some sort of equivalent to ls for GitHub? I'm not seeing anything in GitHub's API, also it seems like…
user1543042
  • 3,422
  • 1
  • 17
  • 31
0
votes
1 answer

My browser is able to download a file (from url), but Python's requests and PyCurl gets "Connection was reset" error. How to fix?

I'm trying to download several large files from a server through a url. When downloading the file through Chrome or Internet Explorer it takes around 4-5 minutes to download the file, which has a size of around 100 MB. But when I try to do the same…
kspr
  • 980
  • 9
  • 23
0
votes
1 answer

Use pycurl without installation

I am working on a tkinter app and I would like to use the pycurl module in my project but without being installed on any host machine... Like a portable version into my package. I didn't see any topic on the web speaking about it but still keeping…
Stéphane
  • 21
  • 4
0
votes
1 answer

How to prompt for password with pycurl? (equivalent to curl -u)

Is there a pycurl equivalent to curl -u username where I can get Python to prompt for my password?
Jason S
  • 184,598
  • 164
  • 608
  • 970
0
votes
0 answers

cannot install pycurl in windows

i try many way to install pycurl in windows 7 32 bit: pip install --no-cache-dir --compile --ignore-installed --install-option="--with-openssl" pycurl but i get…
Fath Bakri
  • 161
  • 1
  • 12
0
votes
1 answer

No module named pycurl error even with pycurl instaled

I want to use pycurl in my first python project on Raspbian but i have some difficulties installing it. During the installation procces (by pip) everything seemed to go well, nothing errored out but when i try to implement it the ide errors out.…
Muhaha
  • 61
  • 5
0
votes
1 answer

"curl and pycurl" not working without sudo

I have multiple network interfaces and want to send data using a specific interface. Here's my code using pycurl: def curl_post(url, data, iface=None): c = pycurl.Curl() buffer = BytesIO() c.setopt(pycurl.URL, url) …
javadfarah
  • 46
  • 5
0
votes
2 answers

pycurl installation issue on windows using pip and easy_install

Ive been trying for a long time different commands but i always kept getting Please SPecify --curl.... I tried installing pycurl in a terminal, but it was not working
0
votes
1 answer

Not able to run theharvester on kali linux. Fatal exception: Pycurl: Link time version is older than compile time version

I tried running theharvester on my kali machine but then I get an error, "Fatal exception: pycurl: libcurl link-time version (7.65.3) is older then compile-time version (7.66.0). Wfuzz needs pycurl to run." I reinstalled pycurl and Wfuzz with pip…
Chris Daniel
  • 1,141
  • 2
  • 11
  • 11
0
votes
0 answers

Conversion from curl command into python code using pycurl and request not working

I have this curl command that I want into python code command = ' curl -k -u test:123 -H "Content-type: application/json" --digest "https://192.168.0.10/restapi/config/minutes/"' The command works fine in the terminal I have tried two methods using…
Mav
  • 123
  • 1
  • 8
0
votes
2 answers

how to convert curl example to Pycurl

PS - No I am not going to use python requests, cause it does not help creating readable streams of the file. curl -i -H…
Chidananda Nayak
  • 1,161
  • 1
  • 13
  • 45
0
votes
1 answer

How to upload file by PUT on python without opening the file

Problem: 1) Need a python library which accepts path of file instead of opening the file(as it can be huge) to make a PUT request. 2) Also want that library to automatically do the redirect if exists(Requests library does that) The shell command for…
ksn varma
  • 1
  • 1