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.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for asyncbing-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae6844711001c7a7ceb218f842351850bb5a06ebfa7352dcc7853d385078a146 |
|
MD5 | d3fb3918893d2a9d3c45c83c4c87b063 |
|
BLAKE2b-256 | 1b1ac9e060da9d6b819dae849b45b2b7eefc90b112c5932eb0445b89f13cb354 |