def __init__(self, print_fn=print, loop=None):
     self._print_fn = print_fn
     self._driver = Whalesong(driver=WhalesongDriver(profile=path.join(
         path.dirname(__file__), 'profile-chromium'),
                                                     headless=True,
                                                     loop=loop),
                              loop=loop)
    def __init__(self, print_fn=print, loop=None):
        self._print_fn = print_fn
        self._driver = Whalesong(driver=WhalesongDriver(profile=path.join(
            path.dirname(__file__), 'profile-chromium'),
                                                        headless=True,
                                                        loop=loop),
                                 loop=loop)

        try:
            mkdir(OUTPUT_DIR)
        except FileExistsError:
            pass