Automated Tech News Posting Bot for X

Rashid Shahriar
Software Developer
Staying active on X (formerly Twitter) is not easy, especially if you want to post useful and up-to-date tech content every day. Most of the time, the problem is not ideas—it is consistency.
To solve this, I built a small automation bot that handles everything for me. It collects tech news, rewrites it, and posts it automatically.
What the Bot Does
The idea is simple.
The bot fetches the latest posts from platforms like Hacker News and DEV.to. Then it rewrites the content using the Gemini Fast Free API to make it shorter and more suitable for social media. After that, it posts directly to my X account.
I can also control how many posts go out each day and schedule them at specific times.
How It Works
The process runs in three steps.
First, it collects trending or recent tech posts from trusted sources.
Second, it rewrites the content so it feels fresh and readable instead of just copying the original text.
Finally, it publishes the post automatically based on the schedule I set.
Once everything is configured, the system runs on its own.
Why I Built This
There are already tools for automation, but most of them are either paid or too limited. I wanted something simple that I could fully control and modify.
This project is lightweight and flexible. I can adjust how content is fetched, how it is rewritten, and how often it gets posted.
Key Features
The bot handles the full workflow from fetching content to publishing it.
It rewrites posts using AI so they are easier to read and more engaging.
You can schedule posts at any time you want.
You can also control how many posts are published per day.
Everything is open source, so it is easy to customize.
Tech Stack
The project uses simple APIs and a scheduler.
It connects to Hacker News and DEV.to to fetch content.
It uses the Gemini API for rewriting.
It uses the X API for posting.
A basic scheduler or cron job handles timing.
Final Thoughts
For me, the biggest benefit is consistency. I no longer have to think about posting every day.
The system keeps my account active while still sharing useful content.
If you like building automation tools or want to grow a tech-focused account, this kind of setup can save a lot of time.