Permalink
Browse files

readme

  • Loading branch information...
1 parent 4f33558 commit 2d1cf6feb9c3ef5e91a91dad4ca4b02628d97ec2 @n8han n8han committed Apr 19, 2011
Showing with 13 additions and 1 deletion.
  1. +12 −0 README.markdown
  2. +1 −1 storage.py
View
@@ -0,0 +1,12 @@
+Steal This Database
+===================
+
+This is an example application for the Meetup
+[OpenEvents stream][doc]. It requires Python 2.5 or higher, PycURL,
+sqlite3.
+
+On first run `steal.py` creates database "meetups.sqlite" in the
+current directory, then proceeds to insert or update events as they
+arrive. Event names are printed to stdout.
+
+[doc]: http://www.meetup.com/meetup_api/docs/stream/2/open_events/
View
@@ -15,4 +15,4 @@ def event_callback(event):
values = [event.get(k, None) for k in ['id', 'name', 'description', 'event_url', 'time']]
conn.execute("""insert or replace into event values
(?, ?, ?, ?, ?)""", values)
- print("added %s" % event['name'])
+ print("stored %s" % event['name'])

0 comments on commit 2d1cf6f

Please sign in to comment.