
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
This package provides a unified interface to perform web searches across multiple popular search engines.
To install the package, use pip:
pip install multi_search_engine
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")
search(query, num_results=10, search_engine="google")
Performs a web search using the specified search engine.
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".A list of search results. The exact format may vary depending on the search engine used.
ValueError
: If an unsupported search engine is specified.
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A package for searching multiple search engines
We found that multi-search-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.