Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 919 Bytes

File metadata and controls

17 lines (12 loc) · 919 Bytes

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.

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 an 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.