Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Commit

Permalink
fix: switch to chromium (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibalzer committed Sep 27, 2021
1 parent c7e179f commit b4d7035
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion primelooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, cookies, publishers='all', headless=True):

def __enter__(self):
self.playwright = sync_playwright()
self.browser: Browser = self.playwright.start().firefox.launch(
self.browser: Browser = self.playwright.start().chromium.launch(
headless=self.headless)
self.context: BrowserContext = self.browser.new_context()
self.context.add_cookies(self.cookies)
Expand Down Expand Up @@ -304,3 +304,5 @@ def read_cookiefile(path: str) -> typing.List[Cookie]:
except Exception as ex:
log.error("Error %s", ex)
traceback.print_tb(ex.__traceback__)
raise ex

0 comments on commit b4d7035

Please sign in to comment.