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

How to reset HTTPHEADERs in pycurl object?

I've set some additional headers using c.setopt(self.c.HTTPHEADER, ['Accept: */*', ..., ...]) Now what I want is to reset/clear that headers without destroying pycurl object or closing session.
Pablo
  • 28,133
  • 34
  • 125
  • 215
-1
votes
1 answer

unable to install pycurl on windows for Py 3.7

In my requirments file there is pycurl==7.43.0.6. I am using Python 3.7. I get the following error: ERROR: Command errored out with exit status 10: command: 'c:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =…
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
-1
votes
1 answer

Windows machine Installing pycurl module on Thonny

I am trying to install pycurl module in Thonny virtual environment but without any luck.. Whatever I try, I am getting the same error message: Please specify --curl-dir=/path/to/built/libcurl I have previously installed this module on my Raspberry…
Lukas Petrikas
  • 65
  • 2
  • 11
-1
votes
1 answer

Install pyCurl on Pypy

I am trying to install the compiled version of PyCurl, but I get the error: My system configuration:
-1
votes
1 answer

typeError: unsetopt() is not supported for this option

class ContentCallback: def __init__(self): self.contents = '' def content_callback(self, buf): self.contents = self.contents + buf def exploitdb_search(name): if len(name) != 0: query =…
user15333224
-1
votes
1 answer

What's the fastest way to send 100,000 web requests with Python3?

I have about 100,000 URL lists. All are in the same domain and have different subdirectories. What is the fastest way to check the status codes for this 100,000 URL list? I am currently making a request using threading and PyCurl as follows. How do…
-1
votes
1 answer

How can I process this API request to Positionly using Python and not Curl?

The API resource for Positionly is here: https://developers.positionly.com/ I was interested in learning how to re-write Curl into Python requests, or use something like PyCurl to make things easier. This is the Curl code (I beleive, correct me if…
Studiumcirclus
  • 69
  • 4
  • 11
-1
votes
1 answer

How do I properly continue a for loop with potential errors?

The purpose of my PyCurl code is to iterate through an array of IP addresses and then print the response body's of each IP Address. The only problem with this, is that some IP's are actually offline, and when PyCurl cannot connect to the IP, it…
juiceb0xk
  • 949
  • 3
  • 19
  • 46
-1
votes
2 answers

How to authenticate and download an image from a website?

I've seen many solutions to manage authentication and download an image from a website, but I'm a little bit lost among all of these libraries: urllib urllib2 pycurl requests other dark solutions I didn't understand... Basically, I want to…
RomainTT
  • 140
  • 5
-1
votes
1 answer

java script html element scrape using a scrapy on phython 2.7.11 i get like these

[root@Imx8 craigslist_sample]# scrapy crawl spider /root/Python-2.7.11/craigslist_sample/craigslist_sample/spiders/test.py:1: ScrapyDeprecationWarning: Module `scrapy.spider` is deprecated, use `scrapy.spiders` instead from scrapy.spider import…
VENKAT
  • 1
  • 2
-1
votes
1 answer

Using parameters with pycurl

I'm trying to use pycurl for the first time and I'm not sure how to use parameters with it. curl "https://mytest.com/mdb.json" -H "Cookie: JSESSIONID=6CCB148AEE7318BD08EFC869E0FD33AB; user=testuser;…
NosIreland
  • 91
  • 2
  • 8
-1
votes
1 answer

Retrieve the source code of a url using pycurl and a port number?

Is there any way to retrieve the url source code and store it in a string ,provided that a particular port is defined in pycurl module so that it works for a proxy network. platform - ubuntu or any other linux distro
J square
  • 55
  • 4
-1
votes
1 answer

How can i execute the following code using pycurl

curl https://api.smartsheet.com/1.1/sheets -H "Authorization: Bearer 26lhbngfsybdayabz6afrc6dcd" -H "Content-Type: application/json" -X POST -d @test.json
Jasmita Sagi
  • 47
  • 1
  • 7
-1
votes
1 answer

Cannot connect to website via pycurl after django 1.7 upgrade

I am working on a django website which appeared to be working with django 1.64 (although only tested once). In my app's view I have a function contact which when a form that is submitted is supposed to message a website ("mysite"). def…
user1592380
  • 34,265
  • 92
  • 284
  • 515
-2
votes
1 answer

What happens when the python thread is in network call(HTTPS) and the context switch happens?

I am having a problem where a multithreaded download application that we wrote is sometimes getting 408 error . We think it might be because the user has increased the number of threads ,and this has caused the error. We think it may be possible…
Amrit
  • 5
  • 1
1 2 3
40
41