Skip to content

Instantly share code, notes, and snippets.

<entry xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.georss.org/georss" xmlns:as="http://activitystrea.ms/spec/1.0/" xmlns:sf="http://superfeedr.com/xmpp-pubsub-ext">
<id>http://itunes.apple.com/us/album/cassadee-pope-ep/id529128165?uo=2</id>
<published>2012-05-25T12:21:31+02:00</published>
<updated>2012-05-25T12:21:31+02:00</updated>
<title>Cassadee Pope - EP - Cassadee Pope</title>
<summary type="text"/>
<content type="html">&lt;table border="0" width="100%"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<status xmlns="http://superfeedr.com/xmpp-pubsub-ext" feed="http://feeds.feedburner.com/TheAtlantic">
<http code="304">Content not modified</http>
<next_fetch>2012-04-13T06:54:12Z</next_fetch>
<period>900</period>
<last_fetch>2012-04-12T15:37:18Z</last_fetch>
<last_parse>2012-04-12T15:07:10Z</last_parse>
<last_maintenance_at>2012-04-11T19:20:04Z</last_maintenance_at>
</status>
$ diff push.sorted.log xmpp.sorted.log
295a296
> tag:etsy.com,2010-10-09:29288191
1127a1129
> tag:etsy.com,2010-10-09:47888868
3381d3382
< tag:etsy.com,2010-10-09:62490240
3657a3659
> tag:etsy.com,2010-10-09:63034985
5281a5284
<!DOCTYPE html>
<html>
<head>
<title>Start Page</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="http://twitter.github.com/bootstrap/1.4.0/bootstrap-dropdown.js"></script>
<script src="http://twitter.github.com/bootstrap/1.4.0/bootstrap-alerts.js"></script>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">
</head>
<body style="padding-top: 50px;">
source 'http://rubygems.org'
gem 'sinatra'
gem 'rack-superfeedr'
require './app'
run Sinatra::Application
require 'sinatra'
require 'rack-superfeedr'
require 'cgi'
configure do
# Application settings
set :host, ENV['HOST']
set :login, ENV['SUPERFEEDR_LOGIN']
set :password, ENV['SUPERFEEDR_PASSWORD']
require 'sinatra'
require 'rack-superfeedr'
use Rack::Superfeedr, { :host => "plant-leg.showoff.io", :login => "demo", :password => "demo", :format => "json", :async => false } do |superfeedr|
set :superfeedr, superfeedr # so that we can use `settings.superfeedr` to access the superfeedr object in our application.
superfeedr.on_notification do |notification|
puts notification.to_s # You probably want to persist that data in some kind of data store...
end
var _ = require('underscore')._,
backbone = require('backbone');
var AppModel = backbone.Model.extend({
defaults: {
},
initialize: {
}
});
@superfeedr
superfeedr / heroku-addon-documentation.md
Created January 9, 2012 23:29
Documentation for the Superfeedr Heroku Addon

Superfeedr Add-on

This addon allows you to interact with Superfeedr's API and receive realtime RSS feed notifications. If you're application needs to grab some content from a 3rd party site through their RSS feeds, this add-on will make that easy for you.

Local setup

There should be no significant change in your local environment. Just install the addon as explained below and get the credentials with: