Skip to content
A feed aggregator powered by Pubsubhubbub http://scaggregator.appspot.com/
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
css Initial commit of all the code for Streamer. Note the lack of functio…
images Initial commit of all the code for Streamer. Note the lack of functio…
webtest Added primitive functional tests using webtest and nosegae
.gitignore Added reference to webtest to list of dependencies. Removed tests for…
BUGS Initial commit of all the code for Streamer. Note the lack of functio…
README Added reference to webtest to list of dependencies. Removed tests for…
TODO Made Admin links visible to everyone. They will only work for actual …
about.html Initial commit of all the code for Streamer. Note the lack of functio…
add_subscriptions.html Initial commit of all the code for Streamer. Note the lack of functio…
app.yaml Fixing side-effects of merging from a local branch to master
delete_subscriptions.html Initial commit of all the code for Streamer. Note the lack of functio…
feedparser.py Fixed my mis-understanding of the way GReader's atom:source support w…
footer_fragment.html Initial commit of all the code for Streamer. Note the lack of functio…
posts.html Added big date header for each new day in a human readable format. Ma…
pshb.py Made Admin links visible to everyone. They will only work for actual …
settings.py Fixing problems caused by making changes on the wrong branch
sidemenu_fragment.html Made Admin links visible to everyone. They will only work for actual …
streamer.py Made Admin links visible to everyone. They will only work for actual …
streamer_functional_tests.py Added reference to webtest to list of dependencies. Removed tests for…
streamer_tests.py Added reference to webtest to list of dependencies. Removed tests for…
subscriptions.html Initial commit of all the code for Streamer. Note the lack of functio…
subscriptions_fragment.html Initial commit of all the code for Streamer. Note the lack of functio…

README

An aggregator along the lines of Planet but using the Pubsubhubbub protocol for updates 
rather than doing it's own polling or being powered by a cron job.

It's meant to be deployed on Google App Engine and it's written in Python.

INSTALLATION
This isn't yet ready for installation by people who don't feel like changing the Python code. However if you feel brave you should:
- Register an AppEngine application at http://appengine.google.com/start/createapp?
- Change the app.yaml file to have the same Application Identifier as your application.
- Change the APP_NAME constant to have the same Application Identifier as your application.
- Change the SECRET_TOKEN from the default
- Use the Google App Engine Launcher: http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python to deploy the application.


TESTING
When it comes to trying to do TDD on GAE then this blog post:
	http://www.cuberick.com/2008/11/unit-test-your-google-app-engine-models.html
is the best guide I've found so far.

You need gae-testbed, nose and nose-gae. So...
sudo easy_install gaetestbed
sudo easy_install nose
sudo easy_install nosegae
sudo easy_install webtest

Now that you've got the testrunners installed you can run the functional tests:
	nosetests --with-gae streamer_functional_tests.py 

Then you can run the unit tests:
	nosetests --with-gae streamer_tests.py

You can run all the tests by doing:
	nosetests --with-gae streamer_functional_tests.py && nosetests --with-gae streamer_tests.py

You can run individual tests by doing:
    	nosetests --with-gae streamer_tests.py:ContentParserTest.testCanExtractPostsWithExpectedContentFromSampleFeed
Something went wrong with that request. Please try again.