Home / Portfolio / Blog Generator
LOGIC2025

Blog Generator.

Python CLI that writes a paragraph on any topic using the OpenAI API.

A small command-line tool that prompts the user for a topic, sends it to the OpenAI completions endpoint (gpt-3.5-turbo-instruct), and prints the generated paragraph.

Built around a single generateblog() function with a clean input loop — the API key is loaded from a .env file via python-dotenv so no secrets end up in source. Temperature tuned to 0.5 for coherent but non-repetitive output; max_tokens capped at 400 per paragraph.

The point of this one was learning how to integrate a third-party API end to end: environment config, request shaping, response parsing, and a friendly loop that lets you keep generating until you stop.

Next project

Analytics Dashboard

Start · Next

Have something
like this in mind?

Send a short brief — I'll reply within 24 hours with honest feedback and next steps.

Start a Project →