def __init__(self):
"""
Initializes a web client and logs the user in.
"""
with open('settings.yaml') as s:
settings = yaml.load(s)
print('Initializing web driver...')
if settings['showbrowser']:
self.driver = webdriver.Firefox(executable_path=settings['geckopath'])
else:
if settings['phantomjspath']:
self.driver = webdriver.PhantomJS(executable_path=settings['phantomjspath'])
else:
self.driver = webdriver.PhantomJS()
print('Logging in...')
self.__login()
print('Loading the schedule...')
self.__load_schedule()
albertheijn.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录