From 1cd59dbc78a76d36c2e5ba606644eab978b75a3b Mon Sep 17 00:00:00 2001 From: David Trail Date: Sun, 18 Mar 2012 18:50:04 +0100 Subject: [PATCH] grab by name instead of id --- grab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grab.py b/grab.py index 83108d1..8347f3c 100755 --- a/grab.py +++ b/grab.py @@ -35,7 +35,7 @@ while True: child_data = child['data'] if 'id' in child_data: datum.append({ - 'id': child_data[u'id'], + 'id': child_data[u'name'], 'created': child_data['created'], 'body': child_data['body'], 'subreddit': child_data['subreddit']})