Skip to main content

A api wrapper for the bing search api.

Project description

AsyncBing

asyncbing is an asyncio api wrapper for the Bing Search Api. It uses a modern async/await python api.

Installing

python -m pip install asyncbing
For the stable version of asyncbing.
python -m pip install git+https://github.com/TennisBowling/asyncbing/
For the unstable/cutting edge of asyncbing. Not recommended in production. \

Usage

Import it with
from asyncbing import search
Then initialize asyncbing with your Bing Search Api key guide like s = search.Search('APIKEYGOESHERE')

Sample usage

import asyncbing
import asyncio

s = asyncbing.Search('key')

async def main():
    resp = await s.fetch('cool search term')
    print(resp.matches)
    oneresult = resp.getOne()
    print(oneresult.name)
    print(oneresult.url)
    print(oneresult.snippet)

asyncio.run(main())

Project details


Download files

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

Source Distribution

asyncbing-1.0.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

asyncbing-1.0.2-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page