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

Error building a docker image gives an error: Failed to build wheel for pycurl(setup.py)

I am trying to create a docker image from a dockerfile but I keep encountering this error. ERROR: requests-oauthlib 1.2.0 has requirement oauthlib>=3.0.0, but you'll have oauthlib 2.1.0 which is incompatible. And this error. Building wheel for…
Mattreex
  • 189
  • 2
  • 17
0
votes
1 answer

theharvester cant use wfuzz

I've started to work with theharvester in Kali Linux. But I've a problem... when the program starts, give me an error. theharvester error At this moment, I visit wfuzz documentation and i do that they say: $ pip install wfuzz $ git clone…
0
votes
0 answers

How to submit a curl request via Python to return a csv file

I have a cURL script that, when run via the CMD Prompt window, returns the requested data. However I am trying to figure out how to automate this process via Python (either 2.7 - 3.6) so that it returns a csv file instead. (I am using the latest…
user2657668
  • 21
  • 1
  • 4
0
votes
1 answer

PycURL unsetopt for WRITEFUNCTION

I'm using PycURL to send multiple request to a specific API, before my service is running I'm sending a dummy request using PycURL.perform() To avoid printing into the console I'm using PycURL.setopt(PycURL.WRITEFUNCTION, noop_write_function) Now…
hodisr
  • 314
  • 2
  • 12
0
votes
1 answer

install pycurl in another virtualenv

Here is my situation: I work on a python project in which we work within a particular, project-oriented-and-customized virtual environment. However at some point I need to introduce 3rd party modules into this venv, concretely speaking, pycurl and…
J.E.Y
  • 1,173
  • 2
  • 15
  • 37
0
votes
1 answer

How do I use PyCurl to send POST parameters?

I'm using Python 3.7. I'm trying to make a CURL POST request using PyCurl , but I'm having trouble figuring out how to assemble the form parameters. I tried this conn = pycurl.Curl() if python3: conn.setopt(conn.CAINFO,…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
0 answers

Problem get file info with Curl in Python

I'm using python 2.7 and I need a python script like following. The problem is waiting file download everytime for result if curl time condition is True. I want to get result without waiting file download even if the condition is True. Same curl…
0
votes
1 answer

Is the return value of pycurl.CurlMulti.info_read still usable after call to remove_handle?

I am using pycurl.CurlMulti interface in python3 and I want to use info_read to check for the succeeded and failed connections. According to the documentation of the c interface curl_multi_info_read of libcurl: WARNING: The data the returned…
JiaHao Xu
  • 2,452
  • 16
  • 31
0
votes
0 answers

Call Curl to Get Response from another Docker Container Service

I have two separate docker container services. Their container are as follows: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6fb658bc7acd api1 …
0
votes
1 answer

Download public files from cloud.google.com using python when it requires login

I'm trying to download the twitter misinformation/elections-integrity dataset at: https://storage.cloud.google.com/twitter-election-integrity/hashed/ira/ira_media_file_list_hashed.txt But it requires a login. I'm not using Google App Engine, just…
Gabriel Fair
  • 4,081
  • 5
  • 33
  • 54
0
votes
1 answer

Converting curl into pycurl format using python3

I am using python3 pycurl module to send post request. I have a curl request of this format.. curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{ "from": "0xdd1b1f8a644be8e1f41fbe6d7db25b56301ac6a2", "to":…
Hsn
  • 1,168
  • 2
  • 16
  • 39
0
votes
1 answer

Downloading data using PycURL in Canopy under mac os High Sierra failed

I tried to write two functions in python which can be used for downloading data from sites and save those as csv files. The functions are: def get_site_url( site_number='01589440', date_from="2008-01-01",date_to="2017-12-31" ): # input: site_number…
0
votes
1 answer

how to translate this code in curl using bash to request in python

I'm trying to translate a bash script that works with curl to send a code remotely to a mega Arduino, using an ESP01 as a programmer with the ESP-link firmware, the bash script that does that work, summarized in a few lines, is this: #!…
0
votes
1 answer

TypeError: invalid arguments to setopt in pycurl python flask API Development

I am trying to build a Webservice API using python flask. When I execute this code below: http://localhost/Service/API/Services.svc/XMLService/Students?SEARCHBY=StudentNo&STUDENTNUMBER='1234'&SESSIONKEY=94194202323 ...it works fine. But I could not…
Rabiul
  • 1
  • 1
0
votes
1 answer

Curl To Pycurl Translation

I have been working with curl request (from bash) /usr/bin/curl -L -k -u admin:admin -X GET 'https://localhost/test/123/123' How can I translate this request to the pycurl code, and implement it through python, options are important as it is REST…
Tiz
  • 1
  • 1