Simply Best Practices for Web Blog's XML Sitemaps & RSS/Atom feeds
Simply Best Practices for Web Blog’s XML Sitemaps & RSS/Atom feeds
Simply Best practices for Web Blog’s XML Sitemaps & RSS/Atom feeds
Simply Best practices for Web Blog’s XML Sitemaps & RSS/Atom feeds
Submitting sitemaps can be an important part of optimizing websites. Sitemaps enable search engines to discover all pages on a site and to download them quickly when they change. This blog post explains which fields in sitemaps are important, when to use XML…
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
✓ Live Streaming✓ Interactive Chat✓ Private Shows✓ HD Quality✓ Free Actions
Free to watch • No registration required • HD streaming
If you want to let your own script subscribe to Posterous directly via PubSubHubbub (powered by Superfeedr, but in this instance not going through their dashboard), here's an example.
In the above, http://charlvn.za.net/somescript.php would be my script (which has to be set up first) and http://p.charlvn.com/rss.xml is the Posterous feed I'm trying to subscribe to.
If you receive a HTTP/1.1 204 No Content response, you should be fine.
You might notice here that even though the original feed is in RSS format, the code that gets pushed to you is in Atom.
Always blindly accepting the hub_challenge is maybe not a good idea. However, not much harm done as long as you keep the URL of the script secret.
This would just post the title to Twitter, nothing interesting, and actually Posterous can do this straight out of the box. But, being your own script, now is the time to get creative. :)
It's really easy to become a PubSubHubbub publisher if you pick an open hub like pubsubhubbub.appspot.com.
Firstly, you need to make sure the subscribers to your feed know which hub you are notifying. You just need to link to the hub in your Atom feed as follows:
Parties (servers) speaking the PubSubHubbub protocol can get near-instant notifications (via webhook callbacks) when a topic (resource URL) they're interested in is updated.
The protocol in a nutshell is as follows:
簡潔にはプロトコルは次のとおり。
An resource URL (a "topic") declares its Hub server(s) in its HTTP Headers, via Link: <hub url>; rel=”hub” . The hub(s) can be run by the publisher of the resource, or can be acommunity hub that anybody can use: Google's, or Superfeedr.
A subscriber (a server that's interested in a topic), initially fetches the resource URL as normal. If the response declares its hubs, the subscriber can then avoid lame, repeated polling of the URL and can instead register with the designated hub(s) and subscribe to updates.
The protocol is decentralized and free. No company is at the center of this controlling it. Anybody can run a hub, or anybody can ping (publish) or subscribe using open hubs.
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
✓ Live Streaming✓ Interactive Chat✓ Private Shows✓ HD Quality✓ Free Actions
Free to watch • No registration required • HD streaming
Recently I added PubSubHubbub support to my site. It's pretty simple to add, so I thought i'd share it here.
PubSubHubbub is a pub/sub model for the internet. e.g. publishers can update their feeds and then inform a central hub. Subscribers register with the hub and get pinged whenever the published has posted new data. For a more thorough explanation, refer the PubSubHubbub site.
I will explain how to add support for a rss feed.
Step 1:
You first need to find a hub (or maybe host your own) I used the hub at Superfeedr. Once you register, you will receive your hub url, something like: mydomain.superfeedr.com
Step 2:
You need to augment your rss feed with the url of the hub the publisher will ping once new data appears. For good measure, also add it to the response headers. Here's what I added to my rss feed:
Thus, the first time anyone accesses the feed, the links in the feed (or alternatively in the header), will inform them that the pubsubhubbub protocol is supported and the client can register with the hub url specified in order to get updates.
Step 3:
Subscribe with the hub and provide an appropriate callback to be called each time the publisher updates it's feed.
Step 4:
The publisher needs to ping the hub any time it's feed is updated. Here is a sample gist of a function written in javascript to achieve that.
You can see it in action on my site at PackageIndex
PuSH is great because instead of downloading the entire feed over and over again, PuSH sends new content to Feedbin making it so articles show up right after they are published. Feedbin already has thousands of articles getting pushed every hour.