Giter Club home page Giter Club logo

goudai's Introduction

GoudAI

GoudAI is an AI-powered journalist that generates high-quality articles in Moroccan Arabic Darija based on a given topic. It utilizes the Anthropic API for language generation and the SERP API for retrieving relevant search results.

Installation

  1. Clone the repository: git clone https://github.com/marouane53/GoudAI.git

  2. Install the required dependencies: pip install -r requirements.txt

  3. Replace the ANTHROPIC_API_KEY and SERP_API_KEY variables in the code with your own API keys.

Usage

  1. Run the script: python goudai.py

  2. Enter a topic to write about when prompted.

  3. Choose whether you want an automatic edit after the initial draft by entering 'yes' or 'no'.

  4. The script will generate search terms, retrieve relevant URLs, and generate an article based on the collected information.

  5. The generated article will be saved as a text file with the formatted title.

  6. If you opted for an automatic edit, the edited article will also be saved as a separate text file.

Acknowledgements

This code is inspired by and heavily modified from a project by mshumer. Errors from the original code have been fixed and additional functionality has been added.

License

This project is licensed under the MIT License.

goudai's People

Contributors

marouane53 avatar

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.