Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    PyBing 0.11

    Download button

    No screenshots available
    Downloads: 195  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    JJ Geewax | More programs
    GPL / FREE
    February 7th, 2012, 14:42 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PyBing description

    A Python wrapper for the Bing Search API

    PyBing is a Python wrapper library for the Bing search API. It provides both a thin wrapper around the Bing Search API as well as a more complete object oriented query API. Since Bing provides a very simple JSON API, this wrapper gives you a Pythonic interface to building and executing queries against Bing.

    Installing PyBing

    To grab the latest version of PyBing from PyPi, use easy_install:

     easy_install pybing

    You can also install PyBing by doing a checkout from Google Code and putting the pybing directory somewhere along your PYTHONPATH.

     mkdir /home/jjg/pybing
     export PYTHONPATH=/home/jjg/
     svn checkout http://pybing.googlecode.com/svn/trunk/ /home/jjg/pybing/


    Using PyBing's thin API wrapper

    >>> from pybing import Bing
    >>> bing = Bing('')
    >>> response = bing.search_web('python bing')
    >>> print response['SearchResponse']['Web']['Total']
    1060000
    >>> results = response['SearchResponse']['Web']['Results']
    >>> print len(results)
    10
    >>> for result in results[:3]:
    ... print repr(result['Title'])
    ...
    u'Python Wrapper on Bing API \u2014 The Uswaretech Blog - Django Web ... '
    u'PyUnit - the standard unit testing framework for Python'
    u'How to transmit arguments from c++ to python '


    Using PyBing's Query API Wrapper

    All of the various source types aren't built out yet, but the Web Query is working. Here's an example:

    >>> from pybing.query import WebQuery
    >>> query = WebQuery('', query='python bing')
    >>> results = query.execute()
    >>> for result in results[:3]:
    ... print repr(result.title)
    ...
    u'Python Wrapper on Bing API \u2014 The Uswaretech Blog - Django Web ... '
    u'PyUnit - the standard unit testing framework for Python'
    u'How to transmit arguments from c++ to python '


    Getting an AppID

    In order to use the Bing API, you'll need a Bing AppID. This is actually really easy to get if you have a Windows Live account (MS Passport, MSN Messenger, Hotmail, etc all work). The page to grab an ID is here http://www.bing.com/developers/createapp.aspx. Just follow the steps and you should have an AppID in no time.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Bing Search API | Python library | Python wrapper | Python | Bing | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM