albertheijn.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:albert-heijn-calendar-sync 作者: StefanPahlplatz 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号