BLOGEN is a blog generation application designed to create well-structured blog posts using Markdown formatting. It takes primary keywords as input and generates engaging and informative blog content for various topics. This README file provides an overview of the BLOGEN application and instructions for usage.
BLOGEN is a Python-based blog generation tool that leverages the power of GPT-3.5 (OpenAI's language model) to create captivating blog posts. The application uses the primary keywords provided by the user to generate prompts and interactively calls the language model to produce content for each step of the blog creation process.
- Keyword-driven Content Generation: BLOGEN accepts primary keywords as input to create blog content tailored to specific topics.
- Iterative Blog Building: The application follows a step-by-step approach to create a complete blog post, including introduction, tone, issue, remedy, options, implementation, pros and cons (optional), and conclusion.
- Various Writing Tones: BLOGEN offers the flexibility to generate blog content in different tones, such as informative, conversational, persuasive, and more.
- Easy Integration with Markdown: The generated blog content is formatted using Markdown, making it easily integrable with various platforms and content management systems.
- Version Control: This is Version 0.1 of the BLOGEN application, with potential updates and improvements planned for future releases.
To get started with BLOGEN, follow these steps:
-
Clone the BLOGEN repository to your local machine:
git clone https://github.com/gaurav18115/blogen.git
-
Install the required dependencies (ensure you have Python 3.x installed):
pip install -r requirements.txt
-
Create your own
.env
file based on.env.example
and store the following
- Obtain an API key for your preferred OpenAI GPT language model
- Obtain an API key for SerpAPI (free version includes 100 searches/month)
- Define your service attributes to be fed into the blog article
-
Upload your sitemap to the root of the workspace with filename
sitemap.xml
-
Set your API key as an environment variable:
export OPENAI_API_KEY=your_api_key export SERP_API_KEY=your_api_key
-
Launch the BLOGEN application:
python blog_gen_algo_v0.2.py [keyword]
-
Alternatively use Streamlit for a browser interface:
streamlit run blog_gen_algo_v0.2.py [keyword]
Upon launching the BLOGEN application, you will be prompted to enter primary keywords for your blog topic. Follow the on-screen instructions to provide the necessary information.
The application will iteratively call the GPT-3.5 language model to generate content for each step of the blog creation process. The generated content will be presented in Markdown format.
Once the blog is fully generated, you can copy the Markdown content and paste it into your preferred platform or content management system for publishing.
BLOGEN relies on the following Python packages:
openai
: The official Python package for interfacing with the OpenAI GPT-3.5 language model.click
: A Python package for creating beautiful command-line interfaces.markdown
: A package for processing and rendering Markdown content.
Contributions to BLOGEN are welcome! If you have ideas for improvements or bug fixes, please feel free to open an issue or submit a pull request. Before contributing, make sure to read our Contributing Guidelines.
BLOGEN is licensed under the MIT License. Feel free to use, modify, and distribute this software as per the terms of the license.
For any questions or feedback, please contact me at [email protected]
.
- Create Key Takeaway section and shorten Introduction
- Fix cost calculation by including full message instead of prompt only
- Find a way to put anchor links on headings
- Create separate table-of-content section
- Swap Intro with Key Takeaways
- Integrate Unsplash API to upload the picture to CMS
- Improve YouTube link generation
- Create logic to check the URLs to avoid 404
This README file was generated using BLOGEN (Version 0.2) - The Blog Generation Application.