From c49b871ebc265b1a2030482ca68f89ed920884ff Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Fri, 22 May 2020 17:54:04 +0300 Subject: [PATCH 1/1] =?utf8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BE?= =?utf8?q?=D1=82=D0=BB=D0=B0=D0=B4=D0=BE=D1=87=D0=BD=D1=83=D1=8E=20=D0=BF?= =?utf8?q?=D0=B5=D1=87=D0=B0=D1=82=D1=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pyrungps.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyrungps.py b/pyrungps.py index d8aaa58..bfff892 100644 --- a/pyrungps.py +++ b/pyrungps.py @@ -26,7 +26,6 @@ def get_page(uname,year,month): trainings = [] req = requests.get("http://www.gps-sport.net/services/getMonthlyTrainingDataHTML_V2.jsp?userName=%s&year=%s&month=%s&rnd=0.645673"% (uname,year,month), headers = {'User-agent': 'Mozilla/5.0'}) - print req.text page = req.text.encode('utf-8') dom = html.document_fromstring(page) -- 2.34.1