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
-2
votes
2 answers

how to use below curl command in python

Below is the curl command and wanted to use in python by using request. I am beginner to python. Appreciate advice/help. curl --header 'Content-Type: text/xml;charset=UTF-8' --data-binary @c:/abcd.xml -X POST http://www.dneonline.com/calculator.asmx
B PM
  • 1
-2
votes
1 answer

Curl POST request using pycurl

someone can me explain how can i use curl request below in pycurl library: curl -X POST --user 'username:password' url Thanks.
quas
  • 333
  • 4
  • 12
-2
votes
2 answers

installing pycurl on osx 10.10 - don't know what to do with pycurl-7.10.5

I'm trying to install pycurl. I downloaded and decompressed pycurl-7.10.5.tar.gz but I don't know what to do with the output. Could someone help me with the install. I have python 3.5 and 3.3 installed as well as the Eclipse IDE with the PyDev…
JoeM
  • 29
  • 1
  • 10
-2
votes
1 answer

Regular JSON Curl to pyCurl

I'd like to get this curl command to run in a Python Script curl -H "public-api-token: 049cxxxxxc026ef7364fa38c8792" -X PUT -d "urlToShorten=google.com" https://api.shorte.st/v1/data/url but I have now clue how.
Gutz-Pilz
  • 319
  • 6
  • 16
-2
votes
1 answer

PYTHON How to search a word on a HTML Page and make a Test

hello everyone I'm searching a special sentence or word in a html page after make a webrequest the sentence = Couldn't resolve host 'http:' I try to code a script using pycurl with b.getvalue() but seems doesen't works website to try…
toto
  • 1
-3
votes
1 answer

What is PycURL lib?

I'm trying to run a program, but it says this: Error importing: pycurl lib. To install it on Debian based systems: $ 'sudo apt-get install python3-pycurl' First of all, what is PycURL lib? Second of all, is it something you install? If so, how…
GraniteSOS
  • 49
  • 2
  • 10
-3
votes
1 answer

How to use cURL in python

I want to use this cURL command in (python with pycurl): curl -X POST --header "Authorization: key=AAAAWuduLSU:APA91bEStixxx" --header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d '{"to" : "fC6xEWZwcu0:APA91xxx", …
user9614161
  • 5
  • 1
  • 3
-3
votes
1 answer

Tor API example not works correct

I'm trying to run example named "Using PycURL" from here https://stem.torproject.org/tutorials/to_russia_with_love.html Everything works fine, but in the final i have this some kind of error: TypeError : String argument expected, got 'bytes' Unable…
Abraham Tugalov
  • 1,902
  • 18
  • 25
-4
votes
2 answers

How can I download this data using Python or Curl?

I want to write a small Python program that automatically downloads the list of stock symbols from the New York Stock Exchange every day. I have found that this data can be obtained in CSV format by pointing my browser here:…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
1 2 3
40
41