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.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for asyncbing-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73e8c8614f69d9e624cbcbe560f9d5822c07c1a167eb32c7340d2032b6ad049 |
|
MD5 | 4395499d97b5a9118f25100745112e7f |
|
BLAKE2b-256 | d08b995eaa9296b8fbee6e8cbf085405e206a72c594362d6ce3c0475bffe9769 |