Search in Google, Bing, Brave, Mojeek, Moose, Yahoo, Searx
Project description
SEARCH-ME
Search in Google, Bing, Brave, Mojeek, Moose, Yahoo, Searx. See more in documentation
INSTALL
pip install search-me
USAGE
import asyncio
import logging
import itertools
import aiohttp
from search_me import Google, Bing, Brave, Mojeek, Moose, Yahoo, Searx
logging.basicConfig(level=logging.DEBUG)
s, b, g = Searx(retry=10), Brave(), Google()
async def main():
async with aiohttp.ClientSession(
timeout=aiohttp.ClientTimeout(total=30),
headers={"User-Agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0"}
) as session:
results = await asyncio.gather(
s.search(session=session, q="社會信用體系"),
b.search(session=session, q="python 3.12"),
g.search(session=session, q="0x0007ee")
)
for x in itertools.chain(*results):
print(x)
loop = asyncio.get_event_loop()
loop.run_until_complete(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
search-me-3.1.0.tar.gz
(552.7 kB
view hashes)
Built Distribution
search_me-3.1.0-py3-none-any.whl
(553.2 kB
view hashes)
Close
Hashes for search_me-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f317785adf4bd662d82bc28b2365502c701e7e04e26bf3e27dcd5ea8ef21c9b2 |
|
MD5 | 1bb4249bfb5698d78e5662273806e6e9 |
|
BLAKE2b-256 | cf7d231da88a8f1014e2886312464dc25a83d8e9de78abccefc1c840c08a67fa |