def login(self):
""" Log in to the ICE Portal (wifionice) """
logging.info('Trying to log in...')
try:
ret = self.session.post('http://{}/de/?login'.format(self.api_host_ip),
data={'login': True, 'CSRFToken': self.csrf_token})
except requests.exceptions.ConnectionError:
logging.debug('Login Failed, probably bad wifi')
评论列表
文章目录