{"id":13825342,"url":"https://github.com/saizk/auto-selenium","last_synced_at":"2025-07-08T21:32:08.033Z","repository":{"id":57412931,"uuid":"424756624","full_name":"saizk/auto-selenium","owner":"saizk","description":"Automatic download of Selenium Web Drivers for all browsers","archived":false,"fork":false,"pushed_at":"2023-08-03T05:20:41.000Z","size":19,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T16:30:54.063Z","etag":null,"topics":["python","selenium"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saizk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-04T22:24:45.000Z","updated_at":"2023-06-25T09:03:05.000Z","dependencies_parsed_at":"2024-05-28T18:31:21.738Z","dependency_job_id":null,"html_url":"https://github.com/saizk/auto-selenium","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"9023b9d1fcfa9602a4d759a7dda2c81bf85221d0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saizk/auto-selenium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fauto-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fauto-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fauto-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fauto-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saizk","download_url":"https://codeload.github.com/saizk/auto-selenium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fauto-selenium/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264281363,"owners_count":23584133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","selenium"],"created_at":"2024-08-04T09:01:19.002Z","updated_at":"2025-07-08T21:32:07.781Z","avatar_url":"https://github.com/saizk.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# auto-selenium\n![PyPI version](https://img.shields.io/pypi/v/auto-selenium)\n\nAuto-Selenium is a Python tool to automate the download of Selenium Web Drivers and store the profile sessions for the following browsers:\n* Google Chrome\n* Firefox\n* Opera\n* Brave\n* Edge (only for Windows)\n\nIt utilizes Selenium and MSEdge tools\n\n## Quickstart examples\n### Installation\n```Python\npip install auto-selenium\n```\n\n### Simple Usage\n```Python\nfrom autoselenium import Driver\n\ndriver = Driver('chrome')  # downloads driver based on current version of the browser\ndriver.get('https://www.google.com/')\n```\n\n### Context Manager\n```Python\nwith Driver('brave', root='drivers') as driver:  # equivalent to Selenium's WebDriver object\n    driver.get('https://www.github.com/saizk')\n    # Selenium Webdriver command examples\n    driver.find_elements_by_tag_name('div')\n    driver.refresh()\n```\n\n### Download specific versions of each driver\n```Python\nfrom autoselenium import download_driver, get_version\n\ndownload_driver('firefox', version='0.29.1', root='drivers')\ndownload_driver('opera', 'latest')\n\ncversion = get_version('brave', 'current')\nlversion = get_version('brave', 'latest')\n\nif cversion \u003c lversion:\n    print('You should update your browser!')\n```\nYou can specify between 'current', 'latest' or input an specific version for a driver.\n\n### Create your custom driver\n```Python\nimport autoselenium\n\nclass TwitterBot(autoselenium.Driver):\n    \n    _URL = 'https://twitter.com'\n    \n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.logged = False\n    \n    def log(self):\n        self.logged = True\n        pass\n    \n    def scrape(self):\n        pass\n```\n## Contribute\nWould you like to contribute to this project? Here are a few starters:\n- Improve documentation\n- Add Testing examples\n- Bug hunts and refactor\n- Additional features/ More integrations\n- Phantom JS support\n- Implement default browser functions for Mac \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaizk%2Fauto-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaizk%2Fauto-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaizk%2Fauto-selenium/lists"}