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
from asyncbing import search
import asyncio
s = search.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
Release history Release notifications | RSS feed
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.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for asyncbing-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b99f52fc442ddbb6bd29c8da72a6f46c8bfa240cdb260f9d9854d9a987f760e |
|
MD5 | 3d984a65db1f13c6cd80d3f4b8d2adb5 |
|
BLAKE2b-256 | 7ad5177c5cb53f6cbb1fc40935d6b19ad0b507994550ea66f4e716ad57b88a02 |