<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: harmankaler2000</title>
    <description>The latest articles on DEV Community by harmankaler2000 (@harmankaler2000).</description>
    <link>https://dev.to/harmankaler2000</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F826916%2F4644a025-8ccc-4c95-a1cf-e8b965dd704e.png</url>
      <title>DEV Community: harmankaler2000</title>
      <link>https://dev.to/harmankaler2000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harmankaler2000"/>
    <language>en</language>
    <item>
      <title>Creating an RSS Feed for any Medium Thread!</title>
      <dc:creator>harmankaler2000</dc:creator>
      <pubDate>Sat, 02 Nov 2024 16:04:09 +0000</pubDate>
      <link>https://dev.to/harmankaler2000/creating-an-rss-feed-for-any-medium-thread-243k</link>
      <guid>https://dev.to/harmankaler2000/creating-an-rss-feed-for-any-medium-thread-243k</guid>
      <description>&lt;p&gt;I was scrolling through project ideas to do in 30 mins for a quick refresher on the weekend, and stumbled across codementor.io&lt;/p&gt;

&lt;p&gt;So, what exactly is an RSS Feed?&lt;/p&gt;

&lt;p&gt;RSS stands for Really Simple Syndication — It is a methodology to access the metadata of a website through an XML file.&lt;/p&gt;

&lt;p&gt;For example, there are multitudes of articles and publications done on Medium, wouldn’t it be so convenient that all links with the summary available on a single page?&lt;/p&gt;

&lt;p&gt;Well the answer to that is — RSS feeds! These were pretty popular a couple of years ago but aren’t really made use of anymore, BUT websites still provide support for you to create your own RSS feed.&lt;/p&gt;

&lt;p&gt;Recently I started reading Intermezzo and wanted to read reviews and latest updates on it on Medium, and then I thought maybe I can create an RSS feed for this?&lt;/p&gt;

&lt;p&gt;Well, a quick search helped me find out that Medium does support RSS feed creation through their endpoints with the XML metadata of Medium on that particular metadata.&lt;/p&gt;

&lt;p&gt;You can find it here - &lt;a href="https://help.medium.com/hc/en-us/articles/214874118-Using-RSS-feeds-of-profiles-publications-and-topics" rel="noopener noreferrer"&gt;https://help.medium.com/hc/en-us/articles/214874118-Using-RSS-feeds-of-profiles-publications-and-topics&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I wrote a quick Python code using the library feedparser — which internally parses the XML file to get the required metadata. I also did the same with BeautifulSoup if you want to parse the metadata on your own as well.&lt;/p&gt;

&lt;p&gt;You can checkout the documentation for feedparser here — &lt;a href="https://feedparser.readthedocs.io/en/latest/" rel="noopener noreferrer"&gt;https://feedparser.readthedocs.io/en/latest/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I parsed and retrieved the medium metadata using the following piece of code —&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;parsed_feed = feedparser.parse(url)
for article in parsed_feed["entries"]:
    response_article.append({
        "Title": article["title"],
        "Description": html2text.html2text(article["summary"]),
        "Author": article["author"],
        "Date Published": article["published"],
        "Last Updated": article["updated"]
    })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To make it more user friendly I create a quick Python class and had a user input the URL from which the metadata should be received, you can find the link to the complete code on Carbon or Github:&lt;/p&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/harmankaler2000/RSS_Feeder" rel="noopener noreferrer"&gt;https://github.com/harmankaler2000/RSS_Feeder&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Carbon: &lt;a href="https://carbon.now.sh/mHN9yVFtZZmkopLHFEe3" rel="noopener noreferrer"&gt;https://carbon.now.sh/mHN9yVFtZZmkopLHFEe3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc4p0999ecxxauoqf99va.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc4p0999ecxxauoqf99va.png" alt="Image description" width="800" height="877"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would love to connect and discuss more on python, please feel free to drop a comment and we can chat!&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>rssfeed</category>
      <category>oop</category>
    </item>
  </channel>
</rss>
