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

python pygtk webview rendering downloaded html code

import pycurl from StringIO import StringIO import gtk import webkit wd = gtk.Window() wd.set_title("example browser") storage =…
Wander
  • 1
0
votes
1 answer

API GET requests from Specific IP - Requests Library - Python

I'm looking to switch existing PHP code over to Python using the Requests library. The PHP code sends thousands of GET requests to an API to get needed data. The API limits GET requests to one every 6 seconds per IP. We have numerous IP addresses in…
Michael Stramel
  • 1,337
  • 1
  • 16
  • 18
0
votes
1 answer

Trouble using pycurl with cookies

I try to get data from a website with pycurl. I made a similar script earlier in php(also using curl) and it worked but in python I get empty response. Similar problem was with php - the site takes post data, initializes a session and redirects to…
Alex
  • 387
  • 4
  • 16
0
votes
1 answer

Python Curl writefunction not working onsecond call

I've written a simple script in Python. It parses the hyperlinks from a webpage, and afterwards these links are retrieved to parse some information. I have similar scripts running and re-using the writefunction without any problems, for some reason…
0
votes
1 answer

pycurl subprocess in a separate Thread

I need help to get the output from pycurl, that I'm trying to run in subprocess. This output I'm trying to put in a queue and than pull this queue out in a different class. unfortunately, Right now I have no output =( import threading import…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
1 answer

Still can't stop the Thread

I want to stop the thread with simple CTR+C, but data is keep coming and coming, so I have to close the window and start it again. Help me please to fix the issue. In order to see what I'm saying, just type your twitter username and password in user…
Vor
  • 33,215
  • 43
  • 135
  • 193
0
votes
3 answers

Trouble installing pycurl on Mac OS X 10.6.8

I am working on a python project (I have python 2.7) that uses the eBay SDK module found here: https://github.com/timotheus/ebaysdk-python I was able to install ebaysdk but had trouble when running my program that imports…
norman
  • 5,128
  • 13
  • 44
  • 75
0
votes
1 answer

Can HTMLParser streaming be implemented using urllib2 in python

I am writing HTMLParser implementation in python which will process a web page downloaded from the internet. Here is my code: class Parser(HTMLParser.HTMLParser): ... parser=Parser() httpRequest = urllib2.Request("http://www......") pageContent =…
Andrey Rubliov
  • 1,359
  • 2
  • 17
  • 24
0
votes
1 answer

pycurl CONNECT_TIME on windows

I am using windows with pycurl, I am having an issue with timings when returning the CONNECT_TIME where by timings are not accurate. Is there a way to make the connect_time in windows more accurate when using pycurl. At the moment I am using the…
Matt Seymour
  • 8,880
  • 7
  • 60
  • 101
0
votes
1 answer

Pycurl works on development but not on production. Why?

The following function connects to an API and returns a json object. Although it only works on development. In the production server it just returns False. Any ideas why it doesn't work in a different server? def request_api(api_call, post_fields,…
ipegasus
  • 14,796
  • 9
  • 52
  • 76
0
votes
1 answer

PycURL support for PROXYTYPE_HTTP_1_0?

libcurl documentation says that option CURLPROXY_HTTP_1_0 has been supported since 7.19.4. PycURL version (on Debian 6) shows libcurl/7.21.0. But I can't find the constant PROXYTYPE_HTTP_1_0 (that's how they name these) in there. Anyone know what…
Ziffusion
  • 8,779
  • 4
  • 29
  • 57
0
votes
1 answer

Obtaining data from blocking source in Gevent loop callback

I'm trying to use Pycurl with Gevent in order to perform HTTP uploads. For this I'm relying on the geventcurl.py module, which alters libcurl's Multi API to use Gevent's event loop. The problem resides in the READFUNCTION callback. This callback is…
André Cruz
  • 500
  • 1
  • 5
  • 15
0
votes
2 answers

python urllib2 stucks 5 seconds after 6 GET, and stuck 2 seconds after each POST

I have following code: def whatever(url, data=None): req = urllib2.Request(url) res = urllib2.urlopen(req, data) html = res.read() res.close() I try use it for GET like this: for i in range(1,20): whatever(someurl) then,…
pinkdawn
  • 1,023
  • 11
  • 20
0
votes
2 answers

pycurl doesn't import after update python to 2.7

I'm using Ubuntu 10.04 and had python 2.6 before. pycurl worked fine. after I updated my python to 2.7, pycurl doesn't import >>> import pycurl Traceback (most recent call last): File "", line 1, in ImportError: No module named…
cheng
  • 6,596
  • 6
  • 25
  • 27
0
votes
2 answers

Box API 2.0: Unable to Download

I'm testing out the new API, but having no luck downloading a test image file. The file exists, is accessible through the web UI, and is retrievable using the v1.0 API. I'm able to access the metadata ("https://api.box.com/2.0/files/{fileid}") using…
R Landry
  • 11
  • 2