|
@ -169,12 +169,16 @@ def grab_feed(feed_url): |
|
|
print(e) |
|
|
print(e) |
|
|
return False |
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
if not data.bozo: |
|
|
print(data.status, feed_url) |
|
|
print(data.status, feed_url) |
|
|
if data.status == 200: |
|
|
if data.status == 200: |
|
|
#304 means the feed has not been modified since we last checked |
|
|
#304 means the feed has not been modified since we last checked |
|
|
write_etag(feed_name, data) |
|
|
write_etag(feed_name, data) |
|
|
return data |
|
|
return data |
|
|
return False |
|
|
return False |
|
|
|
|
|
else: |
|
|
|
|
|
print(data.bozo_exception, feed_url) |
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
feed_urls = open('feeds_list.txt','r').read().splitlines() |
|
|
feed_urls = open('feeds_list.txt','r').read().splitlines() |
|
|