{"id":25506335,"url":"https://github.com/gremmlin01/autoxpath","last_synced_at":"2026-05-14T20:31:10.285Z","repository":{"id":278216490,"uuid":"934864628","full_name":"GremmLin01/autoXPath","owner":"GremmLin01","description":"Finding an element by XPath in Selenium","archived":false,"fork":false,"pushed_at":"2025-02-18T15:39:42.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T16:33:59.794Z","etag":null,"topics":["automation","browser-automation","multithreading","python","selenium","testing","web-scraping","webdriver","xpath"],"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/GremmLin01.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":"2025-02-18T14:27:55.000Z","updated_at":"2025-02-18T16:00:03.000Z","dependencies_parsed_at":"2025-02-18T16:44:04.147Z","dependency_job_id":null,"html_url":"https://github.com/GremmLin01/autoXPath","commit_stats":null,"previous_names":["gremmlin01/autoxpath"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GremmLin01%2FautoXPath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GremmLin01%2FautoXPath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GremmLin01%2FautoXPath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GremmLin01%2FautoXPath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GremmLin01","download_url":"https://codeload.github.com/GremmLin01/autoXPath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239610033,"owners_count":19668079,"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":["automation","browser-automation","multithreading","python","selenium","testing","web-scraping","webdriver","xpath"],"created_at":"2025-02-19T06:30:20.730Z","updated_at":"2025-10-08T04:44:09.629Z","avatar_url":"https://github.com/GremmLin01.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XPath Extractor\r\n\r\n## Description\r\nThis script automatically extracts unique XPath for all visible elements on a web page. It works with Chrome and Firefox browsers, supports multithreading for improved performance, and allows customization of the output file path.\r\n\r\n## Requirements\r\nBefore using, make sure you have:\r\n- Python 3.7+\r\n- Google Chrome or Mozilla Firefox installed\r\n\r\n### Install dependencies\r\n\r\nOpen a terminal (Mac) or command prompt (Windows) and run:\r\n```sh\r\npip install -r requirements.txt\r\n```\r\n\r\n## Usage\r\n\r\n### Running on Windows\r\nOpen the command prompt (Win + R → type `cmd` → Enter) and run:\r\n```sh\r\npython script.py \"https://example.com\" --browser chrome --output xpaths.json\r\n```\r\n\r\n### Running on Mac\r\nOpen the terminal and run:\r\n```sh\r\npython3 script.py \"https://example.com\" --browser firefox --output xpaths.json\r\n```\r\n\r\n## Command-line arguments\r\n- `url` — required argument, the URL of the web page to analyze.\r\n- `--browser` — choose the browser (`chrome` or `firefox`, default: `chrome`).\r\n- `--output` — specify the output file path (default: `xpaths.json`).\r\n\r\n## Example usage\r\n\r\n1. Run with Chrome and save to `xpaths.json`:\r\n```sh\r\npython script.py \"https://example.com\" --browser chrome --output xpaths.json\r\n```\r\n\r\n2. Run with Firefox and save to `output.json`:\r\n```sh\r\npython script.py \"https://example.com\" --browser firefox --output output.json\r\n```\r\n\r\n3. Using Python 3 on Mac:\r\n```sh\r\npython3 script.py \"https://example.com\"\r\n```\r\n\r\n## Possible errors and solutions\r\n- **Error: \"chromedriver not found\" or \"geckodriver not found\"**\r\n  - Ensure that Chrome or Firefox is installed and drivers are up to date using `webdriver_manager`.\r\n\r\n- **Error: \"ModuleNotFoundError: No module named 'selenium'\"**\r\n  - Ensure all dependencies are installed (`pip install -r requirements.txt`).\r\n\r\n## License\r\nThis project is licensed under the MIT License.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgremmlin01%2Fautoxpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgremmlin01%2Fautoxpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgremmlin01%2Fautoxpath/lists"}