From b664da4d87c39d5d8d01489678ecbb022822d61d Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Mon, 24 Sep 2018 10:28:50 -0300 Subject: [PATCH] Flag, sat max elev --- post.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/post.py b/post.py index b6f2d14..b261562 100755 --- a/post.py +++ b/post.py @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +# -*- coding: utf-8 -*- import sys import tweepy @@ -13,7 +14,7 @@ api = tweepy.API(auth) argentinaFlag = u'\U0001F1E6' + u'\U0001F1F7' filenames = [] -for element in sys.argv[2:]: +for element in sys.argv[3:]: filenames.append(element) media_ids = [] @@ -21,4 +22,4 @@ for filename in filenames: res = api.media_upload(filename) media_ids.append(res.media_id) -api.update_status(status=argentinaFlag + ' Imagen satelital: ' + sys.argv[1] + ' #NOAA #weather #argentinaimagenes #noaasatelllite #clima #wxtoimg #raspberrypi #argentina #argentinasat', media_ids=media_ids) +api.update_status(status=argentinaFlag + ' Imagen satelital: ' + sys.argv[1] + '. Elevacion maxima: ' + sys.argv[2] + ' grados. #NOAA #weather #argentinaimagenes #noaasatelllite #clima #wxtoimg #raspberrypi #argentina #argentinasat', media_ids=media_ids)