{"id":75750,"date":"2020-01-20T11:57:59","date_gmt":"2020-01-20T06:27:59","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=75750"},"modified":"2024-04-12T14:17:16","modified_gmt":"2024-04-12T08:47:16","slug":"the-syndication-feed-framework","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/","title":{"rendered":"The Syndication Feed Framework"},"content":{"rendered":"<p>Django comes with a high-level syndication-feed-generating framework that makes creating RSS and Atom feeds easy. RSS and Atom are both XML-based formats you can use to provide automatically updating feeds of your site\u2019s content. Read more about RSS here, and get information on Atom here.<\/p>\n<p>To create any syndication feed, all you have to do is write a short Python class. You can create as many feeds as you want. Django also comes with a lower-level feed-generating API. Use this if you want to generate feeds outside of a Web context, or in some other lower-level way.<\/p>\n<h3>The High-Level Framework<\/h3>\n<p>The high-level feed-generating framework is supplied by the Feed class. To create a feed, write a Feed class and point to an instance of it in your URLconf.<\/p>\n<p><strong>Feed Classes<\/strong> &#8211; A Feed class is a Python class that represents a syndication feed. A feed can be simple (e.g., a site news feed, or a basic feed displaying the latest entries of a blog) or more complex (e.g., a feed displaying all the blog entries in a particular category, where the category is variable). Feed classes subclass django.contrib.syndication.views.Feed. They can live anywhere in your codebase. Instances of Feed classes are views which can be used in your URLconf.<\/p>\n<p><strong>A Simple Example<\/strong> &#8211; This simple example, taken from a hypothetical police beat news site describes a feed of the latest five news items:<\/p>\n<p>from django.contrib.syndication.views import Feed<br>\nfrom django.core.urlresolvers import reverse<br>\nfrom policebeat.models import NewsItem<\/p>\n<p>class LatestEntriesFeed(Feed):<br>\ntitle = &#8220;Police beat site news&#8221;<br>\nlink = &#8220;\/sitenews\/&#8221;<br>\ndescription = &#8220;Updates on changes and additions to police beat central.&#8221;<\/p>\n<p>def items(self):<br>\nreturn NewsItem.objects.order_by(&#8216;-pub_date&#8217;)[:5]\n<p>def item_title(self, item):<br>\nreturn item.title<\/p>\n<p>def item_description(self, item):<br>\nreturn item.description<\/p>\n<p># item_link is only needed if NewsItem has no get_absolute_url method.<br>\ndef item_link(self, item):<br>\nreturn reverse(&#8216;news-item&#8217;, args=[item.pk])<\/p>\n<p>To connect a URL to this feed, put an instance of the Feed object in your URLconf. For example:<\/p>\n<p>from django.conf.urls import url<br>\nfrom myproject.feeds import LatestEntriesFeed<\/p>\n<p>urlpatterns = [<br>\n# &#8230;<br>\nurl(r&#8217;^latest\/feed\/$&#8217;, LatestEntriesFeed()),<br>\n# &#8230;<br>\n]\n<p>Note:<\/p>\n<ul>\n<li>&nbsp;The Feed class subclasses django.contrib.syndication.views.Feed.<\/li>\n<li>title, link and description correspond to the standard RSS &lt;title&gt;, &lt;link&gt; and &lt;description&gt; elements, respectively.<\/li>\n<li>items() is, simply, a method that returns a list of objects that should be included in the feed as &lt;item&gt; elements. Although this example returns NewsItem objects using Django\u2019s object-relational mapper doesn\u2019t have to return model instances. Although you get a few bits of functionality for free by using Django models, items() can return any type of object you want.<\/li>\n<li>If you\u2019re creating an Atom feed, rather than an RSS feed, set the subtitle attribute instead of the description attribute.<\/li>\n<\/ul>\n<p>One thing is left to do. In an RSS feed, each &lt;item&gt; has a &lt;title&gt;, &lt;link&gt; and &lt;description&gt;. We need to tell the framework what data to put into those elements.<\/p>\n<p>For the contents of &lt;title&gt; and &lt;description&gt;, Django tries calling the methods item_title() and item_description() on the Feed class. They are passed a single parameter, item, which is the object itself. These are optional; by default, the unicode representation of the object is used for both.<\/p>\n<p>If you want to do any special formatting for either the title or description, Django templates can be used instead. Their paths can be specified with the title_template and description_template attributes on the Feed class. The templates are rendered for each item and are passed two template context variables:<\/p>\n<ul>\n<li>{{ obj }} \u2013 The current object (one of whichever objects you returned in items()).<\/li>\n<li>{{ site }} \u2013 A Django site object representing the current site. This is useful for {{ site.domain }} or {{ site.name }}.<\/li>\n<\/ul>\n<p>See \u201ca complex example\u201d below that uses a description template.<br>\nThere is also a way to pass additional information to title and description templates, if you need to supply more than the two variables mentioned before. You can provide your implementation of get_context_data method in your Feed subclass. For example:<\/p>\n<p>from mysite.models import Article<br>\nfrom django.contrib.syndication.views import Feed<\/p>\n<p>class ArticlesFeed(Feed):<br>\ntitle = &#8220;My articles&#8221;<br>\ndescription_template = &#8220;feeds\/articles.html&#8221;<\/p>\n<p>def items(self):<br>\nreturn Article.objects.order_by(&#8216;-pub_date&#8217;)[:5]\n<p>def get_context_data(self, **kwargs):<br>\ncontext = super(ArticlesFeed, self).get_context_data(**kwargs)<br>\ncontext[&#8216;foo&#8217;] = &#8216;bar&#8217;<br>\nreturn context<\/p>\n<p>And the template:<\/p>\n<p>Something about {{ foo }}: {{ obj.description }}<\/p>\n<ul>\n<li>This method will be called once per item in the list returned by items() with the following keyword arguments:<br>\nitem: the current item. For backward compatibility reasons, the name of this context variable is {{ obj }}.<\/li>\n<li>obj: the object returned by get_object(). By default, this is not exposed to the templates to avoid confusion with {{ obj }} , but you can use it in your implementation of get_context_data().<\/li>\n<li>site: current site as described above.<\/li>\n<li>request: current request.<\/li>\n<\/ul>\n<p>The behavior of get_context_data() mimics that of generic views \u2013 you\u2019re supposed to call super() to retrieve context data from the parent class, add your data and return the modified dictionary.<\/p>\n<p>To specify the contents of &lt;link&gt;, you have two options. For each item in items(), Django first tries calling the item_link() method on the Feed class. In a similar way to the title and description, it\u2019s passed a single parameter \u2013 item. If that method doesn\u2019t exist, Django tries executing a get_absolute_url() method on that object.<\/p>\n<p>Both get_absolute_url() and item_link() should return the item\u2019s URL as a normal Python string. As with get_absolute_url(), the result of item_link() will be included directly in the URL, so you are responsible for doing all necessary URL quoting and conversion to ASCII inside the method itself.<\/p>\n<p><strong>A Complex Example<\/strong> &#8211; The framework also supports more complex feeds, via arguments. For example, a website could offer an RSS feed of recent crimes for every police beat in a city. It\u2019d be silly to create a separate Feed class for each police beat; that would violate the DRY principle and would couple data to programming logic.<\/p>\n<p>Instead, the syndication framework lets you access the arguments passed from your URLconf so feeds can output items based on information in the feed\u2019s URL. The police beat feeds could be accessible via URLs like this:<\/p>\n<ul>\n<li>&nbsp;\/beats\/613\/rss\/ \u2013 Returns recent crimes for beat 613.<\/li>\n<li>\/beats\/1424\/rss\/ \u2013 Returns recent crimes for beat 1424.<\/li>\n<\/ul>\n<p>These can be matched with a URLconf line such as:<\/p>\n<p>url(r&#8217;^beats\/(?P[0-9]+)\/rss\/$&#8217;, BeatFeed()),<\/p>\n<p>Like a view, the arguments in the URL are passed to the get_object() method along with the request object. Here\u2019s the code for these beat-specific feeds:<\/p>\n<p>from django.contrib.syndication.views import FeedDoesNotExist<br>\nfrom django.shortcuts import get_object_or_404<\/p>\n<p>class BeatFeed(Feed):<br>\ndescription_template = &#8216;feeds\/beat_description.html&#8217;<\/p>\n<p>def get_object(self, request, beat_id):<br>\nreturn get_object_or_404(Beat, pk=beat_id)<\/p>\n<p>def title(self, obj):<br>\nreturn &#8220;Police beat central: Crimes for beat %s&#8221; % obj.beat<\/p>\n<p>def link(self, obj):<br>\nreturn obj.get_absolute_url()<\/p>\n<p>def description(self, obj):<br>\nreturn &#8220;Crimes recently reported in police beat %s&#8221; % obj.beat<\/p>\n<p>def items(self, obj):<br>\nreturn Crime.objects.filter(beat=obj).order_by(&#8216;-crime_date&#8217;)[:30]\n<p>To generate the feed\u2019s &lt;title&gt;, &lt;link&gt; and &lt;description&gt;, Django uses the title(), link() and description() methods.<\/p>\n<p>In the previous example, they were simple string class attributes, but this example illustrates that they can be either strings or methods. For each of title, link and description, Django follows this algorithm:<\/p>\n<ul>\n<li>First, it tries to call a method, passing the obj argument, where obj is the object returned by get_object().<\/li>\n<li>Failing that, it tries to call a method with no arguments.<\/li>\n<li>Failing that, it uses the class attribute.<\/li>\n<\/ul>\n<p>Also note that items() also follows the same algorithm \u2013 first, it tries items(obj), then items(), then finally an items class attribute (which should be a list). We are using a template for the item descriptions. It can be very simple:<\/p>\n<p>{{ obj.description }}<\/p>\n<p>However, you are free to add formatting as desired. The ExampleFeed class below gives full documentation on methods and attributes of Feed classes.<\/p>\n<p>Specifying the Type of Feed &#8211; By default, feeds produced in this framework use RSS 2.0. To change that, add a feed_type attribute to your Feed class, like so:<\/p>\n<p>from django.utils.feedgenerator import Atom1Feed<\/p>\n<p>class MyFeed(Feed):<br>\nfeed_type = Atom1Feed<\/p>\n<p>Note that you set feed_type to a class object, not an instance. Currently available feed types are:<\/p>\n<p>django.utils.feedgenerator.Rss201rev2Feed (RSS 2.01. Default.)<br>\ndjango.utils.feedgenerator.RssUserland091Feed (RSS 0.91.)<br>\ndjango.utils.feedgenerator.Atom1Feed (Atom 1.0.)<\/p>\n<p><strong>Enclosures<\/strong> &#8211; To specify enclosures, such as those used in creating podcast feeds, use the item_enclosure_url, item_enclosure_length and item_enclosure_mime_type hooks.<\/p>\n<p><strong>Language<\/strong> &#8211; Feeds created by the syndication framework automatically include the appropriate &lt;language&gt; tag (RSS 2.0) or xml:lang attribute (Atom). This comes directly from your LANGUAGE_CODE setting.<\/p>\n<p><strong>urls<\/strong> &#8211; The link method\/attribute can return either an absolute path (e.g. \/blog\/) or a URL with the fully-qualified domain and protocol (e.g. http:\/\/www.example.com\/blog\/). If link doesn\u2019t return the domain, the syndication framework will insert the domain of the current site, according to your SITE_ID setting. Atom feeds require a &lt;link rel=&#8221;self&#8221;&gt; that defines the feed\u2019s current location. The syndication framework populates this automatically, using the domain of the current site according to the SITE_ID setting.<\/p>\n<p>Publishing Atom and RSS Feeds in Tandem &#8211; Some developers like to make available both Atom and RSS versions of their feeds. That\u2019s easy to do with Django: Just create a subclass of your Feed class and set the feed_type to something different. Then update your URLconf to add the extra versions. Here\u2019s a full example:<\/p>\n<p>from django.contrib.syndication.views import Feed<br>\nfrom policebeat.models import NewsItem<br>\nfrom django.utils.feedgenerator import Atom1Feed<\/p>\n<p>class RssSiteNewsFeed(Feed):<br>\ntitle = &#8220;Police beat site news&#8221;<br>\nlink = &#8220;\/sitenews\/&#8221;<br>\ndescription = &#8220;Updates on changes and additions to police beat central.&#8221;<\/p>\n<p>def items(self):<br>\nreturn NewsItem.objects.order_by(&#8216;-pub_date&#8217;)[:5]\n<p>class AtomSiteNewsFeed(RssSiteNewsFeed):<br>\nfeed_type = Atom1Feed<br>\nsubtitle = RssSiteNewsFeed.description<\/p>\n<p>In this example, the RSS feed uses a description while the Atom feed uses a subtitle. That\u2019s because Atom feeds don\u2019t provide for a feed-level description, but they do provide for a subtitle. If you provide a description in your Feed class, Django will not automatically put that into the subtitle element, because a subtitle and description are not necessarily the same thing. Instead, you should define a subtitle attribute.<\/p>\n<p>In the above example, we simply set the Atom feed\u2019s subtitle to the RSS feed\u2019s description, because it\u2019s quite short already. And the accompanying URLconf:<\/p>\n<p>from django.conf.urls import url<br>\nfrom myproject.feeds import RssSiteNewsFeed, AtomSiteNewsFeed<\/p>\n<p>urlpatterns = [<br>\n# &#8230;<br>\nurl(r&#8217;^sitenews\/rss\/$&#8217;, RssSiteNewsFeed()),<br>\nurl(r&#8217;^sitenews\/atom\/$&#8217;, AtomSiteNewsFeed()),<br>\n# &#8230;<br>\n]\n<h3>The Low-Level Framework<\/h3>\n<p>Behind the scenes, the high-level RSS framework uses a lower-level framework for generating feeds\u2019 XML. This framework lives in a single module: django\/utils\/feedgenerator.py. You use this framework on your own, for lower-level feed generation. You can also create custom feed generator subclasses for use with the feed_type Feed option.<\/p>\n<p><strong>SyndicationFeed classes<\/strong> &#8211; The feedgenerator module contains a base class:<\/p>\n<ul>\n<li>django.utils.feedgenerator.SyndicationFeed and several subclasses:<\/li>\n<li>django.utils.feedgenerator.RssUserland091Feed<\/li>\n<li>django.utils.feedgenerator.Rss201rev2Feed<\/li>\n<li>django.utils.feedgenerator.Atom1Feed<\/li>\n<\/ul>\n<p>Each of these three classes knows how to render a certain type of feed as XML. They share this interface:<br>\nSyndicationFeed.init() &#8211; Initialize the feed with the given dictionary of metadata, which applies to the entire feed. Required keyword arguments are:<\/p>\n<ul>\n<li>title<\/li>\n<li>link<\/li>\n<li>description<\/li>\n<\/ul>\n<p>There\u2019s also a bunch of other optional keywords:<\/p>\n<ul>\n<li>&nbsp;language<\/li>\n<li>author_email<\/li>\n<li>author_name<\/li>\n<li>author_link<\/li>\n<li>subtitle<\/li>\n<li>categories<\/li>\n<li>feed_url<\/li>\n<li>feed_copyright<\/li>\n<li>feed_guid<\/li>\n<li>ttl<\/li>\n<\/ul>\n<p>Any extra keyword arguments you pass to __init__ will be stored in self.feed for use with custom feed generators. All parameters should be Unicode objects, except categories, which should be a sequence of Unicode objects.<\/p>\n<p><strong>SyndicationFeed.add_item()<\/strong> &#8211; Add an item to the feed with the given parameters.<\/p>\n<p>Required keyword arguments are:<\/p>\n<ul>\n<li>title<\/li>\n<li>link<\/li>\n<li>description<\/li>\n<\/ul>\n<p>Optional keyword arguments are:<\/p>\n<ul>\n<li>author_email<\/li>\n<li>author_name<\/li>\n<li>author_link<\/li>\n<li>pubdate<\/li>\n<li>comments<\/li>\n<li>unique_id<\/li>\n<li>enclosure<\/li>\n<li>categories<\/li>\n<li>item_copyright<\/li>\n<li>ttl<\/li>\n<li>updateddate<br>\nExtra keyword arguments will be stored for custom feed generators. All parameters, if given, should be Unicode objects, except:<\/li>\n<li>pubdate should be a Python datetime object.<\/li>\n<li>updateddate should be a Python datetime object.<\/li>\n<li>enclosure should be an instance of django.utils.feedgenerator.Enclosure.<\/li>\n<li>categories should be a sequence of Unicode objects.<\/li>\n<\/ul>\n<p><strong>SyndicationFeed.write()<\/strong> &#8211; Outputs the feed in the given encoding to outfile, which is a file-like object.<\/p>\n<p><strong>SyndicationFeed.writeString()<\/strong> &#8211; Returns the feed as a string in the given encoding. For example, to create an Atom 1.0 feed and print it to standard output:<\/p>\n<blockquote><p>&gt;&gt; from django.utils import feedgenerator<br>\n&gt;&gt;&gt; from datetime import datetime<br>\n&gt;&gt;&gt; f = feedgenerator.Atom1Feed(<br>\n&#8230; title=&#8221;My Weblog&#8221;,<br>\n&#8230; link=&#8221;http:\/\/www.example.com\/&#8221;,<br>\n&#8230; description=&#8221;In which I write about what I ate today.&#8221;,<br>\n&#8230; language=&#8221;en&#8221;,<br>\n&#8230; author_name=&#8221;Myself&#8221;,<br>\n&#8230; feed_url=&#8221;http:\/\/example.com\/atom.xml&#8221;)<br>\n&gt;&gt;&gt; f.add_item(title=&#8221;Hot dog today&#8221;,<br>\n&#8230; link=&#8221;http:\/\/www.example.com\/entries\/1\/&#8221;,<br>\n&#8230; pubdate=datetime.now(),<br>\n&#8230; description=&#8221;&lt;p&gt;Today I had a Vienna Beef hot dog. It was pink, plump and per\\<br>\nfect.&lt;\/p&gt;&#8221;)<br>\n&gt;&gt;&gt; print(f.writeString(&#8216;UTF-8&#8217;))<br>\n&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br>\n&lt;feed xmlns=&#8221;http:\/\/www.w3.org\/2005\/Atom&#8221; xml:lang=&#8221;en&#8221;&gt;<br>\n&#8230;<br>\n&lt;\/feed&gt;<\/p><\/blockquote>\n<h3>Custom feed generators<\/h3>\n<p>If you need to produce a custom feed format, you\u2019ve got a couple of options. If the feed format is totally custom, you\u2019ll want to subclass SyndicationFeed and completely replace the write() and writeString() methods. However, if the feed format is a spin-off of RSS or Atom (i.e. GeoRSS, Apple\u2019s iTunes podcast format etc.), you\u2019ve got a better choice.<\/p>\n<p>These types of feeds typically add extra elements and\/or attributes to the underlying format, and there are a set of methods that SyndicationFeed calls to get these extra attributes. Thus, you can subclass the appropriate feed generator class (Atom1Feed or Rss201rev2Feed) and extend these call-backs. They are:<\/p>\n<p><strong>SyndicationFeed.root_attributes(self, )<\/strong> &#8211; Return a dict of attributes to add to the root feed element (feed\/channel).<\/p>\n<p><strong>SyndicationFeed.add_root_elements(self, handler)<\/strong> &#8211; Callback to add elements inside the root feed element (feed\/channel). handler is an XMLGenerator from Python\u2019s built-in SAX library; you\u2019ll call methods on it to add to the XML document in process.<\/p>\n<p><strong>SyndicationFeed.item_attributes(self, item)<\/strong> &#8211; Return a dict of attributes to add to each item (item\/entry) element. The argument, item, is a dictionary of all the data passed to SyndicationFeed.add_item().<\/p>\n<p><strong>SyndicationFeed.add_item_elements(self, handler, item)<\/strong> &#8211; Callback to add elements to each item (item\/entry) element. handler and item are as above.<\/p>\n<p>For example, you might start implementing an iTunes RSS feed generator like so:<\/p>\n<p>class iTunesFeed(Rss201rev2Feed):<br>\ndef root_attributes(self):<br>\nattrs = super(iTunesFeed, self).root_attributes()<br>\nattrs[&#8216;xmlns:itunes&#8217;] =<br>\n&#8216;http:\/\/www.itunes.com\/dtds\/podcast-1.0.dtd&#8217;<br>\nreturn attrs<\/p>\n<p>def add_root_elements(self, handler):<br>\nsuper(iTunesFeed, self).add_root_elements(handler)<br>\nhandler.addQuickElement(&#8216;itunes:explicit&#8217;, &#8216;clean&#8217;)<\/p>\n<p>Obviously there\u2019s a lot more work to be done for a complete custom feed class, but the above example should demonstrate the basic idea.<\/p>\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/certified-django-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Back to Tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django comes with a high-level syndication-feed-generating framework that makes creating RSS and Atom feeds easy. RSS and Atom are both XML-based formats you can use to provide automatically updating feeds of your site\u2019s content. Read more about RSS here, and get information on Atom here. To create any syndication feed, all you have to do&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[8655],"tags":[8796],"class_list":["post-75750","page","type-page","status-publish","hentry","category-django-web-development","tag-the-syndication-feed-framework"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Syndication Feed Framework - Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Syndication Feed Framework - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Django comes with a high-level syndication-feed-generating framework that makes creating RSS and Atom feeds easy. RSS and Atom are both XML-based formats you can use to provide automatically updating feeds of your site\u2019s content. Read more about RSS here, and get information on Atom here. To create any syndication feed, all you have to do...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:47:16+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/\",\"name\":\"The Syndication Feed Framework - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2020-01-20T06:27:59+00:00\",\"dateModified\":\"2024-04-12T08:47:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Syndication Feed Framework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Syndication Feed Framework - Tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/","og_locale":"en_US","og_type":"article","og_title":"The Syndication Feed Framework - Tutorial","og_description":"Django comes with a high-level syndication-feed-generating framework that makes creating RSS and Atom feeds easy. RSS and Atom are both XML-based formats you can use to provide automatically updating feeds of your site\u2019s content. Read more about RSS here, and get information on Atom here. To create any syndication feed, all you have to do...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:47:16+00:00","twitter_misc":{"Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/","name":"The Syndication Feed Framework - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2020-01-20T06:27:59+00:00","dateModified":"2024-04-12T08:47:16+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/the-syndication-feed-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"The Syndication Feed Framework"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/75750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=75750"}],"version-history":[{"count":4,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/75750\/revisions"}],"predecessor-version":[{"id":83374,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/75750\/revisions\/83374"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=75750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=75750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=75750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}