Skip to main content

Search in Google, Bing, Brave, Mojeek, Moose, Yahoo, Searx

Project description

SEARCH-ME

Version License Python Status Format Wheel Build Coverage Downloads


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)

Uploaded Source

Built Distribution

search_me-3.1.0-py3-none-any.whl (553.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page