web syndication: how it works
DESCRIPTION
Presentation for a session on Web-SyndicationTRANSCRIPT
Web Syndication
WEB SYNDICATION
Broadcast Information Subscribe Information
• A new way to broadcast information on internet.
• How it works, the technology behind it ?
• How we can use it for ourselvesWith a Demo of RSS
Web Syndication
HOW TO USE IT ?
Search Subscribe
Use
3 step simple process to get information by
subscription
Web Syndication
HOW TO USE IT ?
SEARCH• MSN News• Wikipedia• Engadget• Sting• THIS IS WHAT U NEE
D TO SEARCH
SUBSCRIBE• Use Browser• Make Your Own App.• Bit Torrent• Add JSS
USE• Browser• On Web Page• Use Your App• Use Bit Torrent• Google Reader• Google Desktop• Some Sites Using IT
Web Syndication
SUBSCRIBE & USE
Search this within a website Search this in your browser
Globally accepted ICON for
representing Web Syndication
Web Syndication
SOME FAMOUS SITES USING IT
Web Syndication
WHY GO WEB SYNDICATION WAY ?
Event Results & dates and sponsors
Sites take you through a lot of links & you download more unnecessarily
No need to give personal details while subscribing to some newsletters
What‘s going on MIT-RDBMS or TE-COMP I group? Single click away
No spam's in your mailbox, blogs get money by selling your information
From music to videos or games (Bit Torrent) everything
No Popup's and can get information from multiple sites at a time
Applications need not to depend upon the format of site
Web Syndication
HOW SYNDICATION WORKSSERVER SIDE
WEB FEEDS(XML)
•RSS FEEDS (Really Simple Syndication)•ATOM FEEDS
JAVASCRIPT
•JSS (Java Script Syndication)
Web Syndication
JSS (Javascript Syndication)
• JSS is the simplest form of syndicating information.
• At the server side a javascript file say http://localhost/anirudh.js is maintained.One very simple example can be
<script language = “javascript”>document.write(‘<a href =“www…..”> hi guys this is anirudh tomer</a>’);//or any html you want to have
</script>
• Invite website administrators (technical term :web masters) to link this javascript in their web pages.
<script language="Javascript" src= "http://www.example.com/syndicate.js" >
• Use software like Master Syndicator V4 to automatically update all/some web pages/channel (channel refers to source) using your syndicated content.
• Used mainly for advertisement purposes.• Search engines face problems.
Web Syndication
HOW SYNDICATION WORKS ?CLIENT’s VIEW
FEEDS : These are the actual content items that are produced by web authors.
These could be taken from blogs, journals, news sites, etc.
Web Syndication
RSS(Really Simple Syndication)
(Rich Site Summary)
• RSS is an XML schema to syndicate content on Web.
• Client software called Aggregator : Collects information from various sources
• Aggregator refreshes the content after a certain time specified by the source
• RSS is a globally accepted format, everyone following the same
• Rights currently held by Berkman Center for Internet & Society at Harvard Law School under the terms of the Attribution/Share Alike Creative Commons license
• Used by sites like msn, wiki’s, companies, musicians etc. Its free format anyone can use it.
• First version RDF (resource description framework) designed in 1999• Current version is RSS 2.0 designed in 2002
Web Syndication
RSS-XML FORMAT<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0“>
<channel> <title> TE COMP-I Assignments </title>
<link> http://www.mitpune.com/compdept/tecomp1/assignments </link> <description> Assignments to be performed this week </description> <language> en </language> <managingEditor> [email protected] </managingEditor><webMaster> [email protected] </webMaster><generator> MediaWiki 1.16alpha-wmf </generator><pubDate> Fri, 26 Mar 2010 10:24:09 GMT </pubDate><lastBuildDate> Sat, 27 Mar 2010 13:32:15 GMT </lastBuildDate> <image> http://www.mitpune.com/compdept/tecomp1/abc.jpeg </image><ttl> 1440 </ttl>
<item> … </item> <item> … </item> <item> … </item></channel>
</rss>
No Whitespaces
allowed in link tag
Web Syndication
ITEM TAG FORMAT<item>
<title> SP Assignments </title> <link> http://www.mitpune.com/compdept/tecomp1/assignments/sp.html </link>
<description> Submit Assembler on 10th March……complete information </description> <author> Mrs.Pradnya Kulkarni </author>
<enclosure url="http://www.mitpune.com/mpegs/VideoTutorial.avi” type=“video/avi" /> Video Tutorial for Assembler Program
</enclosure>
<guid isPermaLink = “true” > http://www.mitpune.com/compdept/tecomp1/assignments/sp.html
</guid>
<pubDate> Fri, 26 Mar 2010 10:24:09 GMT </pubDate>
<source url=" http://www.mitpune.com/compdept/tecomp1/assignments" > TE COMP-I Assignments
</source> </item>
Web Syndication
DEMO OF RSS
TO have RSS feeds in your website you can use:
1. Have a link to the feed.xml page in your welcome page.
2. Or you can have an RSS icon in your browser search bar
<link rel="alternate" type="application/rss+xml" title="RSS Feed for Your Site" href="http://localhost/rss/feed.xml" />
Web Syndication
ATOM SYNDICATION• ATOM is an XML schema similar to RSS
• ATOM is a globally accepted format & was started by those people who suggested flaws in RSS format.
• It is open source and anyone can contribute in it. Google was the first site to use it.
• Some Atom syndication tags are even used in RSS.
• Though RSS is more famous because it was started earlier but being open source ATOM is now used by all new syndicators.
• First version ATOM 0.3 was designed in 2003 – was adopted by google• Current version is ATOM 1.0
Web Syndication
ATOM-XML FORMAT<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" ><title> TE COMP-I Assignments </title>
<link href = “http://www.mitpune.com/compdept/tecomp1/assignments” /> <id> this tag is equivalent to <guid> tag of RSS </id> <subtitle> this tag is equivalent to <description> tag of RSS </subtitle>
<updated> 2010-03-13T18:30:02Z </updated> <modified> 2003-03-15T18:30:02Z </modified>
<author><name> name of the person </name><email> [email protected] </email>
</author>
<generator> </generator><logo> this tag is equivalent to <image> tag of RSS </logo><entry> … </entry> <entry> … </entry> <entry> … </entry>
</feed>
Web Syndication
ENTRY TAG FORMAT<entry>
<title> SP Assignments </title> <link href = “http://www.mitpune.com/compdept/tecomp1/assignments/sp.html” />
<description> Submit Assembler on 10th March……complete information </description> <author> Mrs.Pradnya Kulkarni </author>
<summary> its like abstract if the topic </summary><content> actual contents </content>
<link rel=“enclosure” href = “http://www.xyz.com/abc.avi” />
<id> equivalent to <guid> tag in RSS </id> <updated> equivalent to <pubDate> tag in RSS </updated>
</entry>
Web Syndication
RSS vs. ATOMFRIEND OR FOE
RSS FEEDS ATOM FEEDS
Copyrighted by Harvard University & hence not much changes in it are possible
Atom feeds are open standard making it better on each update.
No tag to specify if the document is XML+Text / XML+HTML / XML+XHTML
The type attribute in <title> tag specifies the type of document.
Character set used : US ASCII character set Has a much larger character set : from other languages also
The <description> can’t specify if it’s a summary or a complete content
Has separate <summary>&<content> tags
Less number of tags & updating rights are there imposed by HARVARD.
Number of tags are more in it & according to the requirement of market, they are updated
RSS tags can’t be used in other XML formats<link> tag of RSS
Atom tags have format like <atom:link>They can be used in other formats
Since RSS came earlier its name is more popular as compared to
ATOM Syndication.However more and more sites are now keeping both formats for syndicating their content.
Web Syndication
THANK YOUThankful to my senior Mr. Sanjay Idnani for
introducing me to RSS and inspiring me to make program for RSS reader
RSS “brings websites to the user, who would otherwise have to chase the website.” ….BILL
GATES
Interestingly RSS’s first version called as RDF was designed by an Indian Scientist RAMANATHAN
V.GUHA at APPLE INC.QUERIES ?Information By Subscription
Anirudh Tomer Te Comp-I