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

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
  • 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.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: multi_search_engine-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 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.1.tar.gz
Algorithm Hash digest
SHA256 f2bddfc8d4ae6506e0f4a86c727152618bb0fb730312be736720371ad14279e3
MD5 0d2d287ac12e6131d3d06dca46f46be8
BLAKE2b-256 a8e38cb60621261f5be3f4d1ec0c3be02beb800fe0d0c3ea81991ff021facf7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multi_search_engine-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e929daabdb2c6ce028e3a0da278c6e89896f839d0ec93116c6c967b31cad8a5
MD5 723c3aa1efda18235030fdbda88f40f2
BLAKE2b-256 44c07a6242d4d21b4f953be01a3a0735625ada393501cf2a12ed07c03bf79716

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