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.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

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!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more