projects
/
pyrungps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
efbf2ac
)
Убрал отладочную печать.
author
Roman Bazalevsky
<rvb@rvb.name>
Fri, 22 May 2020 14:54:04 +0000
(17:54 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Fri, 22 May 2020 14:54:04 +0000
(17:54 +0300)
pyrungps.py
patch
|
blob
|
history
diff --git
a/pyrungps.py
b/pyrungps.py
index d8aaa58736f9cf9146dd9dd46824afb04ed1b0ca..bfff892fca2164b19b10c762e1b6175e18f642f4 100644
(file)
--- 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'})
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)
page = req.text.encode('utf-8')
dom = html.document_fromstring(page)