DEV Community

Fernando Tricas García
Fernando Tricas García

Posted on

1

So, you want a RSS feed with the activity in GitHub?

If you wanted to publish your activity in GitHub somewhere and your preferred way was to read an old, friendly RSS feed, I have some not so good news for you.

It is possible to get and RSS feed, but you need to send the adequate headers, as stated in Feeds.

curl -H "Accept: application/atom+xml" https://github.com/security-advisories
Enter fullscreen mode Exit fullscreen mode

This means that it won't be easy to get these feeds in your feedreader (as far as I know they won't allow to modify headers and, for example, the excellent Feedly does not use this trick).

But if you want to insert this in a program it should be easy to do (in Python, for example, you could use feedparser module and, in Other HTTP Headers they explain how to do it).

For example, for the activity of yours truly, you could use:

d = feedparser.parse('http://github.com/fernand0', request_headers={'Accept':'application/atom+xml'})
Enter fullscreen mode Exit fullscreen mode

Et voilà:

d.entries
Enter fullscreen mode Exit fullscreen mode

has the content available in the feed.

Let me know if this is of some utility for you.

Redis image

62% faster than every other vector database

Tired of slow, inaccurate vector search?
Redis delivers top recall and low latency, outperforming leading vector databases in recent benchmarks. With built-in ANN and easy scaling, it’s a fast, reliable choice for real-time AI apps.

Get started

Top comments (1)

Collapse
 
artu_hnrq profile image
Arthur Henrique

The title caught me out and it was exactly what I was looking for
Thanks for the sharing!

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

👋 Kindness is contagious

Explore this insightful piece, celebrated by the caring DEV Community. Programmers from all walks of life are invited to contribute and expand our shared wisdom.

A simple "thank you" can make someone’s day—leave your kudos in the comments below!

On DEV, spreading knowledge paves the way and fortifies our camaraderie. Found this helpful? A brief note of appreciation to the author truly matters.

Let’s Go!