From 7cf7f6b12f2fd1e42ac1df1f3d7aee79bfb2c786 Mon Sep 17 00:00:00 2001 From: Alessio Date: Dec 27 2020 12:23:35 +0000 Subject: test --- diff --git a/generate.py b/generate.py index dbcbc2e..59768b1 100644 --- a/generate.py +++ b/generate.py @@ -6,25 +6,28 @@ f = open('list.json',) # a dictionary data = json.load(f) -print("" -"" -"") +print('' +'' +'' +' ' +'' +'') print("

Press review

") # Iterating through the json # list for i in data['articles']: - print("

") - print("Title: %s " % i['title']) - print("Source: %s " % i['source']) - print("Date: %s " % i['date']) - print("Excerpt: %s " % i['excerpt']) - print("Link: %s " % i['link']) - print("

") + print('
') + print('

Title: %s

' % i['title']) + print('

Source: %s

' % i['source']) + print('

Date: %s

' % i['date']) + print('

Excerpt: %s

' % i['excerpt']) + print('

Link: %s

' % i['link']) + print('
') # Closing file f.close() -print("" -"") +print('' +'')