Vinyzu / Vinyzu/Botright

[Question] How to use Ungoogled Chromium

Open
#148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation help wanted question
Dominant language
Python
Stars
1k
Forks
85
PR merge metrics
No merged PRs in 30d

Description

How do I program botright to use Ungoogled Chromium?

I can get botright to run but for my use case (slack) the website identifies the browser as a bot so I wanted to try Ungoogled Chromium to see if I got better results. The project seems great like a too good to be true kind of deal but I was wondering what was going on in this case that it doesn't work at least the default botright browser.

This is what i have in my code:

botright_client = await botright.Botright( headless=False, user_action_layer = True ) browser = await botright_client.new_browser()

I've tried using execution path or browser path in botright_client and browser like:

botright_client = await botright.Botright( headless=False, user_action_layer = True, browser_path="/Applications/Chromium.app/Contents/MacOS/Chromium" ) browser = await botright_client.new_browser()

but neither browser_path or execution_path are accepted as params

Desktop (please complete the following information):

  • OS: MacOS Sequiola 15.1.1

I've updated lin/python 3.9/site-packages/browsers/init,py so that that it works on Mac like so:
` import platform
system = platform.system().lower()

if system == "darwin":
from . import osx
elif system == "linux":
from . import linux
elif system == "windows":
from . import windows
from .common import Browser`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue mentions Botright.Botright/new_browser and browsers/init.py; start by checking the constructor's supported browser-selection parameters and the described macOS import change. Done means documenting or confirming the supported way to launch Ungoogled Chromium for the supplied example.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, python
Domain
devtools
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.