{"id":18860674,"url":"https://github.com/paulseperformance/seleniumx","last_synced_at":"2026-02-09T01:30:18.850Z","repository":{"id":50180665,"uuid":"220557508","full_name":"pAulseperformance/seleniumX","owner":"pAulseperformance","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T03:15:08.000Z","size":100,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T10:16:07.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pAulseperformance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-08T22:28:27.000Z","updated_at":"2023-11-22T09:29:30.000Z","dependencies_parsed_at":"2023-01-24T07:15:39.979Z","dependency_job_id":null,"html_url":"https://github.com/pAulseperformance/seleniumX","commit_stats":null,"previous_names":["grilledchickenthighs/seleniumx"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAulseperformance%2FseleniumX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAulseperformance%2FseleniumX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAulseperformance%2FseleniumX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pAulseperformance%2FseleniumX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pAulseperformance","download_url":"https://codeload.github.com/pAulseperformance/seleniumX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800428,"owners_count":19699128,"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":[],"created_at":"2024-11-08T04:26:19.180Z","updated_at":"2026-02-09T01:30:18.820Z","avatar_url":"https://github.com/pAulseperformance.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"https://setuptools.readthedocs.io/en/latest/setuptools.html#develop-deploy-the-project-source-in-development-mode\nhttps://github.com/navdeep-G/setup.py\n\n`python setup.py develop`\n```python\nurl = 'https://www.google.com'\n\n# Instantiate the class which wraps selenium webdriver base class, with an event listener for debugging\n# and an automatic webdriver manager\nws = WebScraper()\n# Setup_driver takes care of downloading the latest chrome binary. You must call this to start the chrome browser.\n# By default, setup_driver will look for the path to the chrome binary first in an environment variable CHROMEDRIVER_PATH\n# This variable is specific to Heroku deployments. If that is not set, it will download the\n# latest chrome binary and save it to the project root directory.\n# The browser will also not be headless.\nws.setup_driver()\n\n# To override the defaults simply pass it keyword arguments.\n# ws.setup_driver(chrome_driver_path='/absolute/path/to/a/directory/to/save/chromedriver/in',\n#                 headless=True,\n#                 version=\"2.26\")\n\n# If you want to setup a driver the old fashioned way, then you can point to an already installed version of chromedriver to use\n# ws.setup_driver(chrome_driver_bin='/absolute/path/to/a/directory/to/save/chromedriver/in/chromedriver')\n\n# ws.setup_driver(chrome_driver_bin='/Users/home/PycharmProjects/seleniumX/seleniumX/drivers/drivers/chromedriver/2.26/mac64/chromedriver')\nws.driver.get(url)\n\n# Avoid bot detections\nws.random_sleep()  # Default is 5 - 10 seconds\nws.random_sleep(sleep_range=(1, 2))  # or you can pass a tuple of a different range.\n\n# Access the driver like normal.\nelement = ws.driver.find_element_by_name(\"q\")\n\n# Use random key inputs to prevent bot detection\nws.random_send_keys(\"Hello World\", element)\n# lucky_btn = ws.driver.find_element_by_name(\"btnI\")\nsearch_btn = ws.driver.find_element_by_name(\"btnK\")\nsearch_btn.click()\n\n# Shortened Webdriver wait class.\nws.wait().until(EC.title_contains(\"Hello World\"))\n\n# Quickly grab all the unique links from a webpage\nws.get_all_unique_links()\n\n# Js Functions\nws.js_scroll_to_bottom()\nelement = ws.driver.find_element_by_name('g')\nws.js_scroll_into_view(element)\n\n# Save a screenshot, by default will take the page title name as filename\nws.save_screenshot()\n# Or pass it a filename\nws.save_screenshot(\"Googlesearchresults\")\n\n# Returns various info about the driver and page.\nws.get_info()\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulseperformance%2Fseleniumx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulseperformance%2Fseleniumx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulseperformance%2Fseleniumx/lists"}