From 2015a2b15e8c87b0144bf757b0741015aebf4e11 Mon Sep 17 00:00:00 2001 From: idoctnef Date: Wed, 13 Apr 2016 14:52:02 +0200 Subject: [PATCH] =?UTF-8?q?posat=20horari=20d'estiu,=20i=20versi=C3=B3=20w?= =?UTF-8?q?eb=20opcional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tuitsview.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tuitsview.py b/tuitsview.py index fdd2ea0..edf4413 100644 --- a/tuitsview.py +++ b/tuitsview.py @@ -31,7 +31,8 @@ public_tweets = api.home_timeline(count=90) for tweet in reversed(public_tweets): print("::::::::::::::::") hora= tweet.created_at.strftime('%H') - hora= int(hora) + 1 + #horari d'estiu + hora= int(hora) + 2 emisor= tweet.user.name + " - @" + tweet.user.screen_name print(emisor + " -" + str(hora) + ":" + tweet.created_at.strftime('%M:%S')) #continguttuit=tweet.text.encode('latin-1', 'ignore').decode('utf-8', 'ignore') @@ -53,5 +54,6 @@ tree.write("dadestw.xml") print(" ") -import webbrowser -webbrowser.open_new('index.html') +#OPCIÓ QUE OBRE AUTOMÀTICAMENT UNA FINESTRA DEL NAVEGADOR PER VISUALITZAR ELS TWEETS +#import webbrowser +#webbrowser.open_new('index.html')