Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Dead simple Python wrapper for Google Search By Image

Project Description
sbi
===

.. image:: https://travis-ci.org/vinta/sbi.py.png?branch=master
:alt: Build Badge
:target: https://travis-ci.org/vinta/sbi.py

.. image:: https://coveralls.io/repos/vinta/sbi.py/badge.png
:alt: Coverage Badge
:target: https://coveralls.io/r/vinta/sbi.py

.. image:: https://badge.fury.io/py/sbi.png
:alt: Version Badge
:target: http://badge.fury.io/py/sbi

.. image:: https://d2weczhvl823v0.cloudfront.net/vinta/sbi.py/trend.png
:alt: Bitdeli badge
:target: https://bitdeli.com/free

Dead simple Python wrapper for `Google Search By Image <http://www.google.com/insidesearch/features/images/searchbyimage.html>`_

Installation
============

.. code-block:: bash

$ pip install sbi

Usage
=====

.. code-block:: python

import sbi

result = sbi.search_by(url='http://vinta.s3.amazonaws.com/godness_k.jpg')

print(result.best_guess)
""" output:
Kiko Mizuhara
"""

print(result.images)
""" output:
[
{
'url': 'http://img.hudie.com/forum/201308/04/103414ypoypetbqrtvqpej.jpg',
'width': '612',
'height': '612',
},
{
'url': 'http://pic.prepics-cdn.com/pib47864010/23041841.jpeg',
'width': '612',
'height': '612',
},
{
'url': 'http://show.ellechina.com/Public/uploads/2013/04/18/516fe30ae9d94_ot.jpg',
'width': '600',
'height': '600'
},
{
'url': 'http://cfile1.uf.tistory.com/image/253B004051AAF01236D264',
'width': '550',
'height': '551',
},
...
{
'url': 'http://media-cache-ec0.pinimg.com/236x/44/48/af/4448af8e35b7ef40dd09acf451770d74.jpg',
'width': '236',
'height': '236',
},
]
"""

If you prefer dictionary:

.. code-block:: python

result_dict = result.to_dict()


History
=======

0.0.7 (2013-12-12)
++++++++++++++++++

- Add `OhShitCAPTCHA` exception
- Random user-agent
- New headers settings

0.0.6 (2013-12-07)
++++++++++++++++++

- Six is good

0.0.5 (2013-12-05)
++++++++++++++++++

- SBIResult improvement
- Fix `extract_best_guess()`

0.0.4 (2013-12-05)
++++++++++++++++++

- Python 2.6 compatibility
- Python 3 compatibility

0.0.3 (2013-12-04)
++++++++++++++++++

- Initial release
Release History

Release History

This version
History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sbi-0.0.7.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Dec 11, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting