So, you want a RSS feed with the activity in GitHub?
Fernando Tricas García

Fernando Tricas García @fernand0

About: El mundo es imperfecto. Puedes hacer algo para mejorarlo. O no. Puede que lo consigas. O no.

Location:
Zaragoza, Spain
Joined:
Mar 6, 2020

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

Publish Date: Oct 13 '22
1 1

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.

Comments 1 total

  • Arthur Henrique
    Arthur HenriqueMar 24, 2023

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

Add comment