Python wrapper for Bing API
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 27 commits ahead of walkr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
bing.py
setup.py

README.md

Python wrapper for Bing API

Getting an API key

  1. Make a Microsoft account.
  2. Visit the Bing Search API page.
  3. Log into your Microsoft account there.
  4. Return to the search API page and select an appropriate tier. (currently, the 5,000 transactions per month tier is free; one transaction is one page of results).
  5. Go to "My Account" and your Primary Account Key is shown there; this is the API key you need to use here.

Usage

import bing

api = bing.Api('your-key')

web_results = api.query('hello world')
news_results = api.query('hello world', srctype='News')