Skip to main content

SEARCH-ME

Version License Python Status Format Wheel Build Coverage Downloads


SEARCH-ME

INSTALL

pip install search-me

USAGE

import asyncio
import itertools
import aiohttp
import niquests
from search_me import Bing, Brave, GoodSearch

bing, brave, goodsearch = Bing(retry=3), Brave(), GoodSearch()

# ASYNC

async def main():

    headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"}

    async with aiohttp.ClientSession(headers=headers) as session:
        results = await asyncio.gather(
            bing.search(session, q="python 3.15"),
            brave.search(session, q="python 3.15"),
            goodsearch.search(session, q="python 3.15")
            )
        for result in itertools.chain(*results):
            print(result.to_dict())


try:
    loop = asyncio.get_event_loop()
except RuntimeError as e:
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)

loop.run_until_complete(main())


# SYNC

def main():

    headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"}

    with niquests.Session(headers=headers) as session:
        results = (engine.search(session, q="python 3.15") for engine in (bing, brave, goodsearch))
        for result in itertools.chain(*results):
            print(result.to_dict())


main()

Release files for search-me 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for search-me 4.0.0
File Size Uploaded
search_me-4.0.0.tar.gz 552.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for search-me 4.0.0
File Interpreter ABI Platform
search_me-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / search_me-4.0.0.tar.gz

Download URL search_me-4.0.0.tar.gz
Size 552.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d7205f1ef4c277b589ef5e33d76b98f8db647018fdefba52c570009a21576c2b
BLAKE2b-256 checksum
How to use checksums
488136323a2ab3a6dfcb9074a14719b7021283e4fafd0386a478f4600e74c856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / search_me-4.0.0-py3-none-any.whl

Download URL search_me-4.0.0-py3-none-any.whl
Size 552.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd8d5f2dc18e07a25dc9083a667f62c76a163d5d46384567d28f450a3437ea7e
BLAKE2b-256 checksum
How to use checksums
1304e454462fa02d5c72d659ac29fb1bb06a5d67037298a28e23fd1072a0257c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1

2 release files

2.0.1

2 release files

2.0

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page