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
1 answer

AttributeError: 'function' object has no attribute 'replace' with Tkinter and BeautifulSoup

import tkinter as tk from tkinter import ttk import bs4 as bs from bs4 import BeautifulSoup, SoupStrainer import httplib2 soup = BeautifulSoup('html.parser', features="lxml") #Creation Objet Tkinter# window =…
0
votes
0 answers

Main thread slows down threads 2-3x times

I have 2 files - first of them parser_thread_emulation.py that spawns threads that do what is inside parser_emulation.py file and main () has while infinite loop as well. File parser_thread_emulation.py: import threading import…
0
votes
1 answer

Google Drive API request timeout in python httplib2

I have been using a google project with Google Drive API to create and update files in google drive, everything was working fine till yesterday. My python script was running fine too, but since couple of hours I am getting the following…
Rian Zaman
  • 409
  • 1
  • 6
  • 18
0
votes
1 answer

save response from API to csv file

I am a new learner to python. I am working with some python code that calls an api and get a response in csv format. I would like to know how can I save that csv response to a csv fie. #! /usr/bin/env python import httplib2 # These aren't needed,…
WindSwept
  • 77
  • 1
  • 2
  • 13
0
votes
1 answer

Issue with python httplib2 on linux

I'm using the following snippet of code to call a web service, that requires basic auth: import urllib import httplib2 url='http://heywatch.com/download.json' body={'username':'my_username','password':'my_password'} header_data={'Accept':…
bvk
  • 395
  • 4
  • 11
0
votes
1 answer

httplib2 :- argument should be integer or bytes-like object, not 'str'

I am using Google Indexing API, and I am getting this error argument should be integer or bytes-like object, not 'str' I am implementing the API on the Django server when I run it on my local machine it runs just fine. but when I put it on…
wetler
  • 374
  • 2
  • 11
0
votes
1 answer

How to OAuth Twitter with httplib2 and Python 3.x?

I know there are a lot of Python Twitter API and OAuth wrappers out there, but I don't want to use them. I want to use nothing more than httplib2 and Python 3.x standard library. Could you please demonstrate simple code examples on how to achieve…
anonymous
  • 1
  • 2
0
votes
0 answers

Python3 httplib2 - how to see credentials added by add_credentials?

environment: OS xUbuntu 18.04.4; Python 3.6.9; httplib2==0.9.2 I'm using httplib2 in such Python code (for some REST POST-request testing): import httplib2, json httplib2.debuglevel = 4 h = httplib2.Http('.cache') data = {"quantity": 1,"product":…
Sergej Matsypa
  • 359
  • 1
  • 3
  • 10
0
votes
0 answers

After installing wheel and httplib2 library I cannot import httplib2 in my code

What is my mistake? Opened command line and installed C:\Users\Caro Schor>pip install httplib2 Requirement already satisfied: httplib2 in c:\users\caro…
0
votes
0 answers

Pip dependency issue : error: httplib2 0.15.0 is installed but httplib2<0.10,>=0.8 is required by set(['apache-beam'])

when trying to install python project, python setup.py install I get the error, error: httplib2 0.15.0 is installed but httplib2<0.10,>=0.8 is required by set(['apache-beam']) However, looking at the pip dependencies …
Imran
  • 1,732
  • 3
  • 21
  • 46
0
votes
2 answers

How to install httplib2 library - getting an error running install

I am trying ton install httplib2 using python. I have both versions of python2.7.10 and python3.7.3 I have tried : pip install httplib2 It returns an error: ERROR: Complete output from command /usr/bin/python -u -c 'import setuptools,…
0
votes
1 answer

SSL verification for registry.gitlab.com via httplib2 fails

I use bazel to publish docker images to gitlab regitry. Last week, the bazel commands started failing. I was able to narrow down the issue to httplib2. The code sample below can be used to reproduce the issue. import httplib import httplib2 conn…
0
votes
0 answers

how to save a .png image retrieved using httplib2

Possible Duplicate: How do I copy a remote image in python? I'm using the Python httplib2 library to retrieve a .png image from the web. E.g. import httplib2 h = httplib2.Http('.cache') response, content =…
Bryce Thomas
  • 10,479
  • 26
  • 77
  • 126
0
votes
0 answers

checking the existence of invalid websites using python

I have a list of websites and I want to check if they exist .. some of them become invalid recently. I tried to follow the code provided here: Python check if website exists, it works to detect the existence of some sites…
Minions
  • 5,104
  • 5
  • 50
  • 91
0
votes
1 answer

Python http2lib authentication request login returning 401

I have a simple Flask app which I am using to get familiar with the flask_httpauth library. I can login via my browser, issuing a GET request and then inputting the user and the password. I was trying to do the same with http2lib using request but…
Nawin
  • 63
  • 1
  • 7