GithubHelp home page GithubHelp logo

groogle's Introduction

Groogle

Groogle is a Python application that combines the capabilities of the Groq API and the Google search engine to provide a comprehensive solution for information retrieval and processing. The application uses the Groq API for chat completions and the Google search engine to find relevant web results. It then uses a web scraper to extract data from these results and uses the Groq API again to generate a response based on the prompt and the extracted data.

Features

  • Groq API Integration: Utilizes the Groq API for chat completions to generate queries and answers.
  • Google Search: Performs Google searches to find relevant web results.
  • Web Scraping: Extracts data from the web results using a web scraper.
  • Concurrent Processing: Uses concurrent processing to speed up the web scraping process.
  • Environment Variables: Loads API keys from environment variables for secure access.

Usage

  1. Install the required packages by running pip install -r requirements.txt.
  2. Set your Groq API key in your environment variables as GROQ_API_KEY.
  3. Run the script and input your prompt when prompted.
  4. The script will generate a Google search query, perform the search, scrape the results, and use the Groq API to generate an answer based on the prompt and the extracted data.

Note

  • The script requires an active internet connection to perform Google searches and scrape web results.
  • The script uses the googlesearch package, which may not be the most efficient or reliable for large-scale scraping.
  • The script uses the postscraper.py for web scraping, which may not be the most efficient or reliable for all websites.
  • The script uses the concurrent.futures module for concurrent processing, which may not be the most efficient or reliable for all use cases.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.

License

This project is licensed under the MIT License.

groogle's People

Contributors

mshojaei77 avatar

Stargazers

P Shreyas  avatar  avatar  avatar William Trabazo avatar laogui avatar Алӣ Саодатхоҳ avatar Bach avatar  avatar Arganex-Emad avatar Alireza Sadraii avatar Milad avatar

Watchers

 avatar

Forkers

emadyay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.