https://github.com/joshsizer/blogposts-generator
Uses ChatGPT to generate blogposts on trending topics
https://github.com/joshsizer/blogposts-generator
blogging chatgpt trending-topics
Last synced: 2 months ago
JSON representation
Uses ChatGPT to generate blogposts on trending topics
- Host: GitHub
- URL: https://github.com/joshsizer/blogposts-generator
- Owner: joshsizer
- License: mit
- Created: 2023-06-23T00:15:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-06T14:24:38.000Z (about 1 year ago)
- Last Synced: 2025-12-28T01:50:47.845Z (6 months ago)
- Topics: blogging, chatgpt, trending-topics
- Language: TypeScript
- Homepage: https://josh.sizer.dev
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://trends.google.com/trends/trendingsearches/daily?geo=US&hl=en-US).
## How
The script works by scraping the Google Trends website using [Playwright](https://playwright.dev).
After it finds the today's trending topic, the script calls out to the [OpenAI API](https://platform.openai.com/docs/introduction),
prompting ChatGPT to generate a markdown formatted blogpost. Finally, it uploads
the generated blogpost to an instance of [Ghost](https://ghost.org)
via the Ghost Admin API.
## Deployment
This script is intented to be run as a Kubernetes Cron Job. You can find that job
[here](https://github.com/joshsizer/flux-root/blob/d08e01348773f15bbc10fcbaa4b51314920c5d10/linode/ystonedev/us-east/green/tenants/blogposts-generator.yaml).