Questions tagged [httplib2]

A comprehensive HTTP client library

A comprehensive HTTP client library, httplib2 supports many features left out of other HTTP libraries.

217 questions
0
votes
2 answers

threading.Thread getting stuck on calling httplib2.Http.request

The first few lines of the script explain the structure and the mechanism. The problem that I'm facing is that the execution is getting stuck at line 53. Once the Downloader acts on the first request it generates the api correctly however on…
Utsav
  • 536
  • 2
  • 6
  • 18
0
votes
1 answer

Errow while uploading gzip via http POST

So trying I'm POSTing a compressed file via httplib2 in Python 3.2. I get the following error: io.UnsupportedOperation: fileno I used to post just an xml file but since those files are getting too big I want to compress them inside the memory…
pypat
  • 1,096
  • 1
  • 9
  • 19
0
votes
1 answer

Getting ServerNotFoundError when using gevent/greenlets with requests

I'm trying to paralellize the retrieval of data from a remote API. The remote API doesn't have any bulk capability, so for each object I need, I have to make a separate GET request. I've added gevent into the mix. It works great sometimes, but if I…
Z Jones
  • 2,015
  • 4
  • 23
  • 42
0
votes
1 answer

How to make httplib2 cache readonly?

The following code creates Http object with caching enabled: http = httplib2.Http('cache') r, b = http.request('http://google.com') The following code creates Http object with caching enabled and if the resource has already been in the cache, its…
sshilovsky
  • 958
  • 2
  • 9
  • 22
0
votes
1 answer

httplib2 multiple connection request

Hy! I'm using httplib2 to simulate several connections to test load on my application. But the issue that I encounter is while testing several connections to my application at the same time. I obtain the following error : AttributeError:…
myss_sy
  • 1
  • 1
0
votes
0 answers

Errno 104 Connection reset by peer When using python httplib2

I am making a request using httplib2 and I am getting the following errors [Errno 104] Connection reset by peer This is how I have implemented it in my code import httplib2 timeout = 60 h = httplib2.Http(".cache", timeout=timeout,…
Saad
  • 1,856
  • 1
  • 22
  • 28
0
votes
1 answer

Adding installed file to PYTHONPATH

This is a follow up to this question. I have installed httplib2 using python setup.py install the file I did this on was on my Desktop. Now I have to include the installed module in my PYTHONPATH in eclipse, my question is how? I assume it involves…
EasilyBaffled
  • 3,822
  • 10
  • 50
  • 87
0
votes
0 answers

OAuth2 & httplib2 Error for GET Tweets

I am trying to fetch tweets from the search api and not able to proceed as I am not sure what the problem is. Code. import httplib2 import oauth2 as oauth import time import certifi consumer_key,consumer_secret,access_key,access_secret =…
LonelySoul
  • 1,212
  • 5
  • 18
  • 45
0
votes
1 answer

Uploading Newline-delimited JSON From a File to BigQuery

I recently wrote a Python script that uploads local, newline-delimited JSON files to a BigQuery table. It's very similar to the example provided in the official documentation here. The problem I'm having is that non-ASCII characters in the file…
Caleb Rackliffe
  • 565
  • 3
  • 10
0
votes
1 answer

ImportError: No module named httplib2 on Heroku

Here is my import libraries in my python code which i hosted on heroku import os from flask import Flask, render_template import sys, httplib2, json; Its shows error ImportError: No module named httplib2?? Can any tell me why is it happening and if…
iJade
  • 23,144
  • 56
  • 154
  • 243
0
votes
1 answer

Python: What's the difference between httplib2 and urllib2?

I'm trying to implement an OAuth2 authentication server and for the client part i wanted to send a json request to the server (from a Django view) and i found several libraries to do that tho' the most common are httplib2 and urllib2 i was wondering…
CodeArtist
  • 5,534
  • 8
  • 40
  • 65
0
votes
1 answer

Python httplib2 Access is denied

I am facing a problem on executing simple code. import httplib2 h = httplib2.Http(".cache") resp, content = h.request("http://example.org/", "GET") Output is Traceback (most recent call last): File "", line 1, in
Zero
  • 74,117
  • 18
  • 147
  • 154
0
votes
1 answer

Error in getting OAuth authentication url

I have the following code in a Python desktop application that authorizes users before using the AppHarbor API. I am following the steps mentioned in the knowledge base and have the following authentication code: def OnAuthenticate(self, event): …
Sumit Bisht
  • 1,507
  • 1
  • 16
  • 31
0
votes
2 answers

multithreaded crawler with different proxy for each thread, the right way?

I'm going to write a multithreaded crawler that is planned to run on about 10M pages, in order to speed thing up I need to fetch about 10~ different pages simultaneity. Each of the crawler-threads will use a different proxy and push the results to a…
YSY
  • 1,226
  • 3
  • 13
  • 19
0
votes
1 answer

Why is Google telling me that my REST httplib2 code is malformed?

import httplib2 from urllib import urlencode h = httplib2.Http() h.add_credentials('zackster@gmail.com', 'PassWord') data = dict(key="ThisIsMyApiKeyICopiedAndPastedIt") resp, content =…
Zack Burt
  • 8,257
  • 10
  • 53
  • 81
1 2 3
14
15