skip to navigation
skip to content

Not Logged In

sbi 0.0.4

Dead simple Python wrapper for Google Search By Image

Latest Version: 0.0.7

sbi

Build Badge Coverage Badge Version Badge Bitdeli badge

Dead simple Python wrapper for Google Search By Image

Installation

$ pip install sbi

Usage

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:

result_dict = result.to_dict()

History

0.0.4 (2013-12-05)

  • Python 2.6 compatibility
  • Python 3 compatibility

0.0.3 (2013-12-04)

  • Initial release
 
File Type Py Version Uploaded on Size
sbi-0.0.4.tar.gz (md5) Source 2013-12-04 4KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 76 downloads in the last week
  • 407 downloads in the last month