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

Python _init_.py

HttpLib2 Can anyone tell me whats the issue here and how to solve it? (https://github.com/Sunil02324/Youtube-Meta-Data-Comments-Scraper)
0
votes
2 answers

httplib2.Http() - TypeError: the JSON object must be str, not 'bytes'

This code works perfectly in Python2 but not in Python3. I went through a lot possible solution, ,but none of. them seems to work. How can I make this. work in python3? Error.log: [Tue Jul 10 07:23:21.713813 2018] [wsgi:error] [pid 1667:tid…
Swipr
  • 1
  • 3
0
votes
1 answer

How to catch the url that cause SSL certificate_verify_failed in python?

I'm trying to access the google sheets api with python within corporate network, that uses firewall. Then, I need to discover all the url/domains google sheets api requests to send IT team unlock the access for theses url's. I am using the…
0
votes
1 answer

SSLHandshakeError with httplib2.python2 while installing Google Cloud SDK

I'm having trouble running the install script for Google Cloud SDK - this question has been asked but without clear answers so far so any help would be welcome! I'm running Python 2.7.14. This is the error I'm…
Mikmac
  • 85
  • 2
  • 8
0
votes
0 answers

Python httplib2 - Unable to get successful response

JSON data doesn't have a successful response but instead null reference I'm trying to call an .NET API in cloud through Python httplib2 library. Same call works fine from PostMan but it doesn't give me the data thru this library. If I change the…
Raj
  • 23
  • 1
  • 4
0
votes
1 answer

Translating cURL request to python

I have to make a cURL request that sends information to the server, the working example request looks like: curl "https://api.XX.com" -u ":test_KayuXJKEdc" -d "name=Sam" -d "address=123 Mockingbird" -d "city=Somewhere" I've tried pycurl, httplib2,…
Tony
  • 13
  • 1
  • 3
0
votes
3 answers

Caching Google API calls for unit tests

I've got a Google App Engine project that uses the Google Cloud Language API, and I'm using the Google API Client Library (Python) to make the API calls. When running my unit tests, I make quite a few calls to the API. This slows down my testing…
new name
  • 15,861
  • 19
  • 68
  • 114
0
votes
0 answers

Uploading a file on drive using python (Exponential backoff for HttpError 500)

A python code that uploads on google drive ... Link: http://wescpy.blogspot.in/2015/12/google-drive-uploading-downloading.html Code: #!/usr/bin/env python from __future__ import print_function import os from apiclient.discovery import build from…
Mumbaikar007
  • 441
  • 1
  • 6
  • 16
0
votes
1 answer

Recursively searching a website for links with httplib2 and BeautifulSoup

I'm using the following to get all external Javascript references from a web page. How can I modify the code to search not only the url, but all pages of the website? import httplib2 from BeautifulSoup import BeautifulSoup, SoupStrainer http =…
j8d
  • 446
  • 7
  • 23
0
votes
1 answer

Timeout Error when using proxy with httplib2 in Python

i have a simple code that uses proxy to submit a "GET" request to google . import httplib2 http = httplib2.Http(proxy_info = httplib2.ProxyInfo(proxy_type=3,proxy_host=myProxy, proxy_port=myPort)) resp, content = http.request("http://google.com",…
KaramJaber
  • 851
  • 5
  • 13
  • 24
0
votes
1 answer

certificatehostnamemismatch while installing google cloud SDK?

I met a certificationhostnamemismatch error while installing google clould SDK. The error message looks like this: .... httplib2.certificatehostnamemismatch: server presented certificate that does not match host dl.google.com .... Does anyone know…
Steve
  • 1,448
  • 11
  • 18
0
votes
1 answer

KeyError: ' http' Url Parsing Error

I am currently working on shopware API When I am parsing the URL of like http://192.168.0.100/shopware531/api and give me an error that:~ connection_type = SCHEME_TO_CONNECTION[scheme] KeyError: u' http' Using the def buildHttpQuery(self,…
Harshit Trivedi
  • 764
  • 9
  • 33
0
votes
3 answers

Python fetch data 403

I am trying to fetch data from a webpage using urllib2. The page is visible on the browser but through the script I keep getting HTTPError: HTTP Error 403: Forbidden I also tried mimicking a browser request by changing the user-agent string but no…
zubinmehta
  • 4,368
  • 7
  • 33
  • 51
0
votes
4 answers

Python3 BigQuery or Google Cloud Python through HTTP Proxy

How to route BigQuery client calls through HTTP Proxy ? Before Posting this, I tried following but it is still not routing through http proxy. And the Google Cloud service credentials are set through shell environment variable…
0
votes
1 answer

BeautifulSoup returns urls of pages on same website shortened

My code for reference: import httplib2 from bs4 import BeautifulSoup h = httplib2.Http('.cache') response, content = h.request('http://csb.stanford.edu/class/public/pages/sykes_webdesign/05_simple.html') soup = BeautifulSoup(content, "lxml") urls…
Thaufeki
  • 177
  • 11