{"id":17851678,"url":"https://github.com/aprilahijriyan/selenium-fetch","last_synced_at":"2025-03-20T09:30:30.615Z","repository":{"id":132493308,"uuid":"611849718","full_name":"aprilahijriyan/selenium-fetch","owner":"aprilahijriyan","description":"A simple module that lets you access the fetch API with selenium!","archived":false,"fork":false,"pushed_at":"2023-03-09T23:46:51.000Z","size":27,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-28T23:52:18.960Z","etag":null,"topics":["cloudflare","fetch","selenium","undetected-chromedriver"],"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/aprilahijriyan.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":"2023-03-09T17:08:08.000Z","updated_at":"2025-01-13T08:33:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"4923efff-2110-4547-a6b1-f93a5cf97e1b","html_url":"https://github.com/aprilahijriyan/selenium-fetch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprilahijriyan%2Fselenium-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprilahijriyan%2Fselenium-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprilahijriyan%2Fselenium-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprilahijriyan%2Fselenium-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aprilahijriyan","download_url":"https://codeload.github.com/aprilahijriyan/selenium-fetch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066180,"owners_count":20392406,"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":["cloudflare","fetch","selenium","undetected-chromedriver"],"created_at":"2024-10-27T23:22:17.604Z","updated_at":"2025-03-20T09:30:30.610Z","avatar_url":"https://github.com/aprilahijriyan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# selenium-fetch\n\nA simple module that lets you access the `fetch` API with selenium!\n\n\u003e _Why do I make this? just annoyed with cloudflare. It works best with [undetected-chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver)._\n\n## Installation\n\n```\npip install selenium-fetch undetected-chromedriver\n```\n\n## Example\n\n```python\nfrom undetected_chromedriver import Chrome\nfrom selenium_fetch import fetch, Options, get_browser_user_agent\n\nLOGIN_PAGE_URL = \"https://smekdong.com/login\"\nLOGIN_API_URL = \"https://smekdong.com/api/login\"\ndriver = Chrome(headless=False)\ndriver.get(LOGIN_PAGE_URL)\npost_data = {\n    'username': 'blaabla',\n    'password': 'xxxx'\n}\nheaders = {\n    \"user-agent\": get_browser_user_agent(driver),\n    'origin': 'https://smekdong.com',\n    'referer': 'https://smekdong.com/',\n}\noptions = Options(method=\"POST\", headers=headers, body=post_data)\nresponse = fetch(driver, LOGIN_API_URL, options)\nprint(\"Response:\", response)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprilahijriyan%2Fselenium-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faprilahijriyan%2Fselenium-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprilahijriyan%2Fselenium-fetch/lists"}