File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ def _get_token(self):
4343 }
4444 global BASE_URI
4545
46- if self ._provider == "Eau Olivet" :
47- BASE_URI = 'https://www.eau-olivet.fr'
4846 url = BASE_URI + API_ENDPOINT_LOGIN
4947
5048 response = requests .get (url , headers = headers , timeout = self ._timeout )
@@ -55,7 +53,6 @@ def _get_token(self):
5553 headers ['Cookie' ] += "; "
5654 headers ['Cookie' ] += key + "=" + response .cookies [key ]
5755
58- phrase = re .compile ('_csrf_token" value="(.*)"/>' )
5956 phrase = re .compile ('csrfToken\\ \\ u0022\\ \\ u003A\\ \\ u0022(.*)\\ \\ u0022,\\ \\ u0022targetUrl' )
6057 result = phrase .search (response .content .decode ('utf-8' ))
6158 self ._token = result .group (1 )
Original file line number Diff line number Diff line change 11requests
2- re
3- datetime
2+ re
Original file line number Diff line number Diff line change 1515
1616setup (
1717 name = 'pysuez' ,
18- version = '0.1.20 ' ,
18+ version = '0.1.31 ' ,
1919 description = 'Get your water consumption data from your Suez account (www.toutsurmoneau.fr or www.eau-olivet.fr)' ,
2020 long_description = long_description ,
2121 author = 'Farid N27' ,
22222323 url = 'https://github.com/ooii/pySuez' ,
24- download_url = 'https://github.com/ooii/pySuez/releases/tag/0.1.18 ' ,
24+ download_url = 'https://github.com/ooii/pySuez/releases/tag/0.1.31 ' ,
2525 package_data = {'' : ['LICENSE' ]},
2626 include_package_data = True ,
2727 packages = find_packages (),
3636 'Programming Language :: Python :: 3.4' ,
3737 'Programming Language :: Python :: 3.5' ,
3838 'Programming Language :: Python :: 3.6' ,
39+ 'Programming Language :: Python :: 3.7' ,
40+ 'Programming Language :: Python :: 3.8' ,
41+ 'Programming Language :: Python :: 3.9' ,
3942 ]
4043)
You can’t perform that action at this time.
0 commit comments