github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

zh / atomgen

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Generate new valid atom entries every x minutes (for testing purposes) — Read more

  cancel

http://atomgen.appspot.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

send site_url from the settings to the template 
zh (author)
Thu Aug 20 11:36:18 -0700 2009
commit  82f18c33e52688abcc20a4b0a1bba0145692b3e8
tree    be0e2cf8f91ff88c83f7b18d5b79b74284806b09
parent  85ec3e76a3262dc475e97b7bc24ff87fb7a41a7c
atomgen /
name age
history
message
file .gitignore Loading commit data...
file README
file app.yaml
file cron.yaml
file feed.py
file feedgen.py
file main.py
file settings.py.dist
directory static/
directory templates/
README
atomgen
========

Infinite Atom Entries Generator


Overview
---------

The application providing two feeds. First one generating Atom entries every
minute and the second one - every 5 minutes. 
The feeds can be used mostly for testing webhooks, pubsubhubbub etc.

The one minute feed is protected by a secret token in the end of the URL.
If your application is installed for example on URL http://example.com/ , 
the two feeds will be:

  http://example.com/feed/1/YouSecretHere    (1min feed)
  http://example.com/feed/5                  (5min feed)


Usage
------

The application is currently deployed on Google AppEngine. You can use the
5 minutes feed for your tests - go to http://pubsubhubbub.appspot.com/subscribe 
and subscribe for the http://atomgen.appspot.com/feed/5 topic. This will send 
to your subscribers a new Atom entry every 5 minutes.

There is also a FriendFeed group - http://friendfeed.com/atomgen , which is already
subscribed to the 5 minutes feed. You can use it to gen notifications via IM etc.


Implementation details
-----------------------

The feeds have atom:link[@rel="hub"] element and the 5 minutes feed is pinging the
hub on feed generation. By default the Google's reference implementation on URL
http://pubsubhubbub.appspot.com/ is used. Your can change the hub with the
HUB_URL option in the settings.py file.

I tried to make the atom generator a good Internet cityzen by setting up the proper
HTTP headers ('Last-Modified', 'ETag' etc.). 'Etag' header contains the ID of the
last entry, cryptography signed, like suggested in 
http://code.google.com/p/pubsubhubbub/wiki/PublisherEfficiency

The current implementation does not use Google Datastore. Feeds are kept only in 
the memcached object caching system.


TODO
-----
- Return only new entries for clients asking with 'If-None-Match' header (ETag)
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server