From 1149737152b28312a74d8e41b6586c2394d806f6 Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Wed, 3 Apr 2019 15:24:01 -0700 Subject: [PATCH] print statements --- feedcake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feedcake.py b/feedcake.py index 136ea07..f24a776 100644 --- a/feedcake.py +++ b/feedcake.py @@ -94,7 +94,7 @@ def process_feed(obj): entry_dir = get_valid_filename(entry.link) # input e.g. https://orf.at/stories/3117136/ entry_path = assets_path + '/'+ entry_dir if not os.path.exists(entry_path): - print('New item: ', entry.link) + print('New item:', entry.link) r = requests.get(entry.link.split('?')[0], headers=requestheaders) online_soup = BeautifulSoup(r.text, 'html.parser') @@ -215,6 +215,7 @@ def process_feed(obj): os.makedirs(feeds_path, exist_ok=True) f = open(feeds_path + '/' + output_filename, 'w') + print('Done!') f.write(str(feed_soup)) f.close()