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.
-
Clone the repository: git clone https://github.com/marouane53/GoudAI.git
-
Install the required dependencies: pip install -r requirements.txt
-
Replace the
ANTHROPIC_API_KEY
andSERP_API_KEY
variables in the code with your own API keys.
-
Run the script: python goudai.py
-
Enter a topic to write about when prompted.
-
Choose whether you want an automatic edit after the initial draft by entering 'yes' or 'no'.
-
The script will generate search terms, retrieve relevant URLs, and generate an article based on the collected information.
-
The generated article will be saved as a text file with the formatted title.
-
If you opted for an automatic edit, the edited article will also be saved as a separate text file.
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.
This project is licensed under the MIT License.