Skip to main content

Selenium browser controller for apt Firefox on Ubuntu 22.10

Project description

Selenium Browser Controller for apt Firefox on Ubuntu 22.10

![Python 3.10][python_badge] ![License: AGPL v3][agpl3_badge] ![Code Style: Black][black_badge] ![Code Coverage][codecov_badge]

Initialises a Selenium browser controller for a specific firefox profile on an Ubuntu 22.10 system for an apt installation of Firefox.

Put into a separate pip package to remove boiler-plate code from other repositories that control the browser.

Usage

First install this pip package with:

pip install browsercontroller

Then run:

from browsercontroller.get_controller import (
    get_ubuntu_apt_firefox_controller,
)

get_ubuntu_apt_firefox_controller("https://www.startpagina.nl")

Warning: Checks whether a snap version of Firefox is installed, and if yes, removes it and installs an apt version of Firefox instead. You'll lose browser history, logins and bookmarks if you don't have an apt version of Firefox.

Updating

Build the pip package with:

pip install --upgrade pip setuptools wheel
pip install "keyring>=23.11"
pip install twine

Install the pip package locally with:

pip install -e .

Upload the pip package to the world with:

rm -r dist
rm -r build
python3 setup.py sdist bdist_wheel
python -m twine upload dist/\*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browsercontroller-0.0.4.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

browsercontroller-0.0.4-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file browsercontroller-0.0.4.tar.gz.

File metadata

  • Download URL: browsercontroller-0.0.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for browsercontroller-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0125630f0b3dcd29b88fd089dc33ac7e806f30112cc2ce9b393097465e33c009
MD5 997bbf5875e871d7304a4f86cf783e18
BLAKE2b-256 af0bc4753126e517694e4d0174f4c0fec736173158bd8a2d75b5c144e14dd76b

See more details on using hashes here.

File details

Details for the file browsercontroller-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for browsercontroller-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 85e0feffc076f14a46fd40a2097fbc25d5fe6971deaede4531424a35d6d103bc
MD5 2caa64f0442e9565295eb4c37733e512
BLAKE2b-256 4b5966d66f8adbf96cdaba36fa2a3d480c8db5f94062cb4ecafaa6c437c23e30

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page