Removed extra page download, was breaking flow
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 14 Oct 2016 06:37:48 +0000 (06:37 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 14 Oct 2016 06:37:48 +0000 (06:37 +0000)
go.py

diff --git a/go.py b/go.py
index 426508677adf09c3a9276aa5d99767b8c9796e4b..0937f2a9ee1d083159a1190b4953134cbbb82fbf 100755 (executable)
--- a/go.py
+++ b/go.py
@@ -132,12 +132,6 @@ def download():
     #print(httpresponse.info())
     open('welcome4.html', 'w', encoding='iso8859-1').write(html)
 
-    assert 'init-synthese.ea' in html
-    httpresponse = httpopen(BASE_URL + '/voscomptes/canalXHTML/comptesCommun/synthese_assurancesEtComptes/afficheSyntheseComptes-synthese.ea')
-    #httpresponse = httpopen(BASE_URL + '/voscomptes/canalXHTML/comptesCommun/synthese_assurancesEtComptes/init-synthese.ea')
-    html = httpresponse.read().decode('iso8859-1')
-    #print(httpresponse.info())
-    open('welcome5.html', 'w', encoding='iso8859-1').write(html)
     sleep(3)
 
     root = html_parser.html_parse(html)