Skip to main content

SuperSearch is a powerful Python package for advanced search and data extraction. It leverages the GPT-4 AI model, Google search, and web scraping to efficiently obtain information on various topics. Ideal for developers needing quick, accurate responses to complex queries and data extraction, analysis, and summarization from multiple web sources. Easy to integrate, SuperSearch enhances functionality and user experience, saving time on manual research and enabling smarter, more effective solutions.

Project description


SuperSearch is a powerful and versatile Python package designed to facilitate advanced search and data extraction capabilities. By leveraging the GPT-4 AI model and integrating with Google search and web scraping techniques, SuperSearch offers an efficient and convenient way to obtain information on various topics.


  • Query GPT-4 AI model for intelligent and relevant answers
  • Google search integration for real-time information retrieval
  • Web scraping capabilities for data extraction and analysis
  • Summarization of lengthy content
  • JSON-based communication for easy integration with other applications
  • Easy-to-use interface for quick and accurate responses to complex queries


To install SuperSearch, simply run:

pip install super_search_gpt

Example Usage 1

Here's a quick example of how to use SuperSearch:

from super_search import SuperSearch
api_key = "your_openai_api_key"
query = "What is the capital of France?"
sup = SuperSearch(api_key)
final_answer, messages = sup.get_answer(query, max_iterations=10, debug=True)
print(f"Final Answer: {final_answer}")

For more information and advanced usage, please refer to the documentation.

Example Usage 2

query =''' what is the news summary in california '''
sup = SuperSearch(gpt_api_key=api_key1,google_search_key=google_search_key1,cse_id=cse_id1,
                  max_iterations_per_answer=15, use_google_search_api=True,)

final_answer, messages = sup.get_answer(query, debug=True)
print(f"Final Answer: {final_answer}")
Raw answer: {"Answer": "None", "Google": "news summary in california", "Scrap": "None", "Location": 0}
Answer: {'Answer': None, 'Google': 'news summary in california', 'Scrap': None, 'Location': 0}
[{"url": "", "title": "Los Angeles Times: News from California, the nation and world", "description": "The L.A. Times is a leading source of breaking news, entertainment, sports, politics, and more for Southern California and the world."}, {"url": "
{'role': 'user', 'content': '{"q": " what is the news summary in california ", "Google_Reply": "None", "Scrap_Reply": "None", "Location_Reply": 0, "Error": ""}'}
Final Answer: Here are some news summaries from California sources:
1. Los Angeles Times: Provides breaking news, entertainment, sports, politics, and more for Southern California and the world (
2. California Releases Report Charting Path to 100 Percent Clean Electricity: An initial analysis called for in Senate Bill 100 regarding clean energy (
3. California News from US News Best States: Provides an interactive platform for ranking the 50 U.S. states, alongside news analysis and daily reporting (
4. CNN: Offers the latest news and breaking news for the U.S., world, weather, entertainment, politics, and health (
5. Budget News from California Community Colleges Chancellor's Office: Shares summary information related to California Community College budgets (
6. UC Davis News, Magazine, Experts and Media Resources: Features news, research, and COVID-19 resources (
7. Tax News from Informs tax professionals, taxpayers, and business owners about state income tax laws (
8. California Governor Newsroom: Shares recent news about California's governor (
9. California Consumer Privacy Laws – CCPA & CPRA: Offers analysis of California's consumer privacy laws (


SuperSearch is released under the MIT License.


We welcome contributions to SuperSearch! If you're interested in contributing, feel free to submit a pull request or open an issue.

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

super_search_gpt-0.1.4.tar.gz (9.2 kB view hashes)

Uploaded source

Built Distribution

super_search_gpt-0.1.4-py3-none-any.whl (7.8 kB view hashes)

Uploaded py3

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