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
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.2.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for asyncbing-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0acba566d76c8b21f568e40ce26f87788602d940fd2f85af118291aebcb28003 |
|
MD5 | 4bc58e0ce880d5ffee272f75d4c73ef2 |
|
BLAKE2b-256 | a1ec9bb51a6bf5b45376fd7e7c3c57d3707fe58351a4fc29f29a4c8752832df5 |