Skip to main content

A module to interact with ideai.dev using Selenium WebDriver.

Project description

🐍 PyIdeAI

Welcome to PyIdeAI! This Python module allows you to interact with the ideai.dev website using Selenium WebDriver. With PyIdeAI, you can easily retrieve similar products to your ideas, thanks to our friends at ideai.dev & power of web scraping.

🚀 Features

  • Browser Compatibility: Choose between Firefox and Chrome for your preference.
  • Easy to Use: Simple methods to retrieve project information based on user prompts.
  • Headless Mode: Run the browser in headless mode for faster execution without a GUI.

📦 Installation

You can install PyIdeAI directly from PyPI using pip:

pip install pyideai

Alternatively, if you want to install it from the source, follow these steps:

  1. Clone the repository:

    git clone https://gitlab.com/mutkuoz/pyideai.git
    cd pyideai
    
  2. Install the required packages:

    pip install -r requirements.txt
    
  3. Install the module:

    pip install .
    

🛠️ Usage

Here's how to use the PyIdeAI module in your Python scripts:

from pyideai import PyIdeAI

# Initialize the PyIdeAI class
ideai = PyIdeAI(browser="c", is_shown=True)  # Use "f" for Firefox

# Retrieve similar projects based on your idea
user_input = "Your innovative project idea"
result = ideai.retrieve_similar_projects(user_input)

# Print the results
for project in result:
    print(f"Title: {project['title']}")
    print(f"Description: {project['description']}")
    print(f"Link: {project['link']}")
    print(f"Tags: {', '.join(project['tags'])}\n")

🌐 Example

If you want to find projects similar to "AI-Powered Chatbot", you can run:

result = ideai.retrieve_similar_projects("AI-Powered Chatbot")

📄 Documentation

Class: PyIdeAI

  • __init__(self, browser="f", driver_options=None, is_shown=False): Initializes the PyIdeAI class with the specified browser and options.

    • browser: Choose "f" for Firefox or "c" for Chrome.
    • driver_options: Options for the selected browser.
    • is_shown: Set to True to run the browser in visible mode.
  • retrieve_similar_projects(user_prompt): Navigates to ideai.dev, submits a user prompt, and returns a list of projects extracted from the resulting page.

🤝 Contributing

We welcome contributions! If you have suggestions or improvements, feel free to open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Contact

For any inquiries, please reach out to Mehmet Utku ÖZTÜRK.


Happy coding! 🎉

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

pyideai-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyideai-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pyideai-0.1.0.tar.gz.

File metadata

  • Download URL: pyideai-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pyideai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e2046390540ac83f7998d2ceff90fb2c83973aadf6838aea24900abc9fa7a635
MD5 7134b4dd127ac2b2200eba094df2423d
BLAKE2b-256 e2aaf4869ce2938afa240925cbd92d1525d0536081d5a3be99041b90218ce49b

See more details on using hashes here.

File details

Details for the file pyideai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyideai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pyideai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8dc8266cdca280e7adb0f90b9d63135a20414b365464247fee688b81ef24de8
MD5 8720876cb06c4410ff2b1f01c54c885d
BLAKE2b-256 314492fd93bad5db4a025885ccdd0d134d2327ca38a5ac015c9b7ff3d7d6f7bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page