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.1.py [keyword]
-
Alternatively use Streamlit for a browser interface:
streamlit run blog_gen_algo_v0.1.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 gaurav18115@gmail.com
.
This README file was generated using BLOGEN (Version 0.1) - The Blog Generation Application.