Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
awtkns committed Mar 1, 2024
2 parents d2a72bd + 28e8fbc commit 869673d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion harambe/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,13 @@ async def run(

async with async_playwright() as p:
browser = await p.chromium.launch(headless=headless)
ctx = await browser.new_context()
ctx = await browser.new_context(
viewport={"width": 1280, "height": 1024},
ignore_https_errors=True,
user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
" (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
)
ctx.set_default_timeout(60000)

await ctx.route("**/*", UnnecessaryResourceHandler().handle)

Expand Down

0 comments on commit 869673d

Please sign in to comment.