Add a News Feed to Your Personal Website

Nick Rodriguez
2 min readFeb 19, 2023

Have a POST request sent to your website daily with a json dict of your recent activity

Social Aggregator data displayed on my personal website

I’ve recently created a personal site. I’ve been inspired by other indie makers.

I wanted to have a novelty that shares some of the stuff I am into so I thought having a news feed that follows my Github, Twitter, and Stackoverflow posts would be a cool addition.

If you would like to use it or take parts of it here is my github repository.

How it works

The crux of this Python application consists of two parts:

· cron scheduler

· api requests

The cron scheduler is set up to run the application every day at 6am.

When the application runs it makes calls to my Github, Twitter and stackoverflow accounts to see what activity I have made recently.

The responses of each of those calls is stored in a database.

Then after all the calls are made I make another single POST request to my personal website, where I set up an endpoint to receive the data at iamnick.info/collect_new_activity.

Conclusion

If you’re a programmer or just someone who likes to tinker check out my github repo and let me know how it works. If you have any questions or comments, I’d be happy to see what I can do to make it better.

And if you’d like to see how I implemented it into my personal site I have a github repository for that as well.

Social Aggregator implemented into my personal website

--

--