clean up output

main
lub 4 weeks ago
parent 16c777218c
commit 0447897b3a

@ -26,12 +26,14 @@ def scrape():
time = timespan.split(' ')[0] time = timespan.split(' ')[0]
output += time output += time
output += ' Uhr' if time != 'Ganztags':
output += ' Uhr'
output += ', ' output += ', '
# place # place
output += data[2].text.strip() if len(data) > 2:
output += ', ' output += data[2].text.strip()
output += ', '
# title # title
output += '<b>' output += '<b>'
@ -49,9 +51,6 @@ def scrape():
return output return output
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self): def do_GET(self):
current_time = time() current_time = time()

Loading…
Cancel
Save