Skip to content

joshsizer/blogposts-generator

Repository files navigation

Blogposts Generator

This is a script that generates a markdown formatted post written in the style of a blog. It writes about a trending topic scraped from Google Trends.

The generated blogpost is uploaded to my blog, a mostly ai blog

How

The script works by scraping the Google Trends website using Playwright. After it finds the today's trending topic, the script calls out to the OpenAI API, prompting ChatGPT to generate a markdown formatted blogpost. Finally, it uploads the generated blogpost to my self-hosted instance of Ghost via the Ghost Admin API.

Deployment

This script is intented to be run as a Kubernetes Cron Job. You can find that job here.

About

Uses ChatGPT to generate blogposts on trending topics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published