{"id":25612204,"url":"https://github.com/ttlns/Selenium-Interceptor","last_synced_at":"2026-05-10T17:30:21.563Z","repository":{"id":65207699,"uuid":"587689842","full_name":"kaliiiiiiiiii/Selenium-Interceptor","owner":"kaliiiiiiiiii","description":"Intercept request using Selenium with Chrome","archived":false,"fork":false,"pushed_at":"2024-01-23T08:49:18.000Z","size":23,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T00:51:21.163Z","etag":null,"topics":["automation","cdp","chrome","chrome-developer-protocol","proxy","python","selenium","webdriver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaliiiiiiiiii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-01-11T10:55:10.000Z","updated_at":"2024-12-16T01:56:10.000Z","dependencies_parsed_at":"2024-10-24T09:40:13.879Z","dependency_job_id":"6f87418e-66ed-4e3d-9bbf-a28b99b1da35","html_url":"https://github.com/kaliiiiiiiiii/Selenium-Interceptor","commit_stats":null,"previous_names":["kaliiiiiiiiii/selenium_interceptor"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2FSelenium-Interceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2FSelenium-Interceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2FSelenium-Interceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2FSelenium-Interceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaliiiiiiiiii","download_url":"https://codeload.github.com/kaliiiiiiiiii/Selenium-Interceptor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240105465,"owners_count":19748465,"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","cdp","chrome","chrome-developer-protocol","proxy","python","selenium","webdriver"],"created_at":"2025-02-22T00:17:53.174Z","updated_at":"2026-05-10T17:30:21.504Z","avatar_url":"https://github.com/kaliiiiiiiiii.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium-Interceptor\n\n* Modifying or [adding headers](#Change-headers)\n* Modify response\n\n### Feel free to test my code!\n\n## Getting Started\n\n### Dependencies\n\n* [Python \u003e= 3.7](https://www.python.org/downloads/)\n* [Chrome-Browser](https://www.google.de/chrome/) installed\n* Selenium\n\n### Installing\n\n* [Windows] Install [Chrome-Browser](https://www.google.de/chrome/)\n* ```pip install selenium-interceptor```\n\n\n### Change-headers\n```python\n\nfrom selenium_interceptor.interceptor import cdp_listener\n\nfrom selenium_profiles import driver as mydriver\nfrom selenium_profiles.profiles import profiles\n\nmydriver = mydriver()\nprofile = profiles.Windows()\n\ndriver = mydriver.start(profile)\n\ncdp_listener = cdp_listener(driver=driver)\ncdp_listener.specify_headers({\"sec-ch-ua-platform\":\"Android\"})\nthread = cdp_listener.start_threaded(listener={\"listener\": cdp_listener.requests, \"at_event\": cdp_listener.modify_headers})\n\ndriver.get(\"https://modheader.com/headers?product=ModHeader\")\n```\nDon't forget to execute\n`cdp_listener.terminate_all()`\nin the End. Else-wise your temporary folder will get flooded! (Windows) and it keeps running\n\n## Help\n\nPlease feel free to open an issue or fork!\n\n## Todo\n\n\n\n## Deprecated\n\n## Authors\n\n[Aurin Aegerter](mailto:aurinliun@gmx.ch)\n\n## License\n\nShield: [![CC BY-NC-SA 4.0][cc-by-nc-sa-shield]][cc-by-nc-sa]\n\nThis work is licensed under a\n[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][cc-by-nc-sa].\n\n[![CC BY-NC-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]\n\n[cc-by-nc-sa]: http://creativecommons.org/licenses/by-nc-sa/4.0/\n[cc-by-nc-sa-image]: https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png\n[cc-by-nc-sa-shield]: https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg\n\n## Disclaimer\n\nI am not responsible what you use the code for!!! Also no warranty!\n\n## Acknowledgments\n\nInspiration, code snippets, etc.\n* [Selenium-Profiles](https://github.com/kaliiiiiiiiii/Selenium-Profiles)\n* [Chrome-devtools-protocol](https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-enable)\n* [cdp_event_listeners](https://stackoverflow.com/questions/66227508/selenium-4-0-0-beta-1-how-add-event-listeners-in-cdp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttlns%2FSelenium-Interceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttlns%2FSelenium-Interceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttlns%2FSelenium-Interceptor/lists"}