Skip to main content

A package for searching multiple search engines

Project description

Multi-Engine Search Package

This package provides a unified interface to perform web searches across multiple popular search engines.

Features

  • Supports Google, Bing, DuckDuckGo, Yahoo, and Baidu search engines
  • Simple, consistent API for all supported search engines
  • Configurable number of results
  • API key support for engines that require it (e.g., Bing)

Installation

To install the package, use pip:

pip install multi_search_engine

Usage

Here's a basic example of how to use the package:

from multi_engine_search import search

# Perform a Google search
results = search("Python programming", num_results=5)

# Perform a Bing search (requires API key)
bing_results = search("Machine learning", num_results=10, search_engine="bing", api_key="your_bing_api_key")

# Perform a DuckDuckGo search
ddg_results = search("Privacy", search_engine="duckduckgo")

# Perform a Google search
results = search("Python programming", num_results=5)

# Perform a Bing search (requires API key)
bing_results = search("Machine learning", num_results=10, search_engine="bing", api_key="your_bing_api_key")

# Perform a DuckDuckGo search
ddg_results = search("Privacy", search_engine="duckduckgo")

API Reference

search(query, num_results=10, search_engine="google")

Performs a web search using the specified search engine.

Parameters:

  • query (str): The search query.
  • num_results (int, optional): The number of results to return. Defaults to 10.
  • search_engine (str, optional): The search engine to use. Options are "google", "bing", "duckduckgo", "yahoo", and "baidu". Defaults to "google".

Returns:

A list of search results. The exact format may vary depending on the search engine used.

Raises:

ValueError: If an unsupported search engine is specified.

Supported Search Engines

  • Google
  • Bing (requires API key)
  • DuckDuckGo
  • Yahoo
  • Baidu

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

multi_search_engine-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

multi_search_engine-1.0.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file multi_search_engine-1.0.0.tar.gz.

File metadata

  • Download URL: multi_search_engine-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for multi_search_engine-1.0.0.tar.gz
Algorithm Hash digest
SHA256 35b8f95b255138fd446bd98c2a09014a76c11549cfcf80541e51939e362d8bd7
MD5 f65ae4c05b3e90a44368a586ca2bd716
BLAKE2b-256 d09e8371f6adb7d3391b78aac7595b7ce4e34d49defedb026f5f8850a33f468e

See more details on using hashes here.

File details

Details for the file multi_search_engine-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for multi_search_engine-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d536240997cd0e12c9561785cfe7462404d14f927fab638b9662576a00c95a
MD5 5d0547286a90bff89c02b886d3503950
BLAKE2b-256 c3509b25f164cd95d0fed2c4b34e3adf52bb6c6294879cd5192e5bf9f20dc8d0

See more details on using hashes here.

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