Article.ai is a versatile project that empowers you to generate blog content, whether you have a specific topic in mind or a collection of URLs to explore. Leveraging OpenAI's language models, the project provides functionality to convert topics into articles, articles into articles (with summarization), and extract URLs from a given source.
-
Generate Blog Content:
- From URLs: Input a list of URLs, and the system will generate detailed blog content.
- From Topics: Specify a topic, and the system will craft an article around it.
-
Summarization:
- The ability to summarize existing articles, extracting key information and generating concise summaries.
-
URL Extraction:
- Utilize the
newspaperlibrary to extract URLs from a given source, aiding in content discovery.
- Utilize the
Make sure you have Python installed on your system. You can download it from python.org.
-
Clone the repository:
git clone https://github.com/0aaryan/article.ai.git
-
Navigate to the project directory:
cd article.ai -
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the project root with your OpenAI API key:OPENAI_API_KEY=your_api_key_here
-
Run the Streamlit app:
streamlit run app.py
-
Extract URLs:
- Enter the source URL in the "Source URL" text area.
- Click on "Extract URLs" to discover and display a list of article URLs.
-
Generate Blogs:
- Enter URLs or topics in the respective text areas, separated by newlines.
- Click on "Generate Blogs" to produce detailed blog content.
-
Resize Images:
- Click on "Resize Images" to standardize image dimensions.
-
Convert to Markdown:
- Click on "Convert to Markdown" to convert blogs to Markdown format.
- Generated Markdown files will be displayed, and you can click on them to view or download.
-
Clear Temporary Files:
- Optional: Click on "Clear Temporary Files" to remove temporary files.
articleai/: Python package containing blog and image generators.generators/: Python modules for blog and image generation.static/output_template/: Output template for blog content.output/: Generated blogs and images.app.py: Streamlit app for interaction.requirements.txt: Project dependencies.readme.md: Project documentation.
-
Fork the repository.
-
Clone your forked repository:
git clone https://github.com/0aaryan/article.ai.git
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make your changes and commit:
git commit -m "Add your commit message here" -
Push your changes to your fork:
git push origin feature/your-feature-name
-
Create a pull request on the main repository.
This project is licensed under the MIT License - see the LICENSE file for details.
Please replace `"your_api_key_here"` in the `.env` example with your actual OpenAI API key. Feel free to customize the contribution guidelines section further based on your specific expectations for contributors.