{"id":16200982,"url":"https://github.com/rpakishore/ak_selenium","last_synced_at":"2026-02-09T06:04:19.860Z","repository":{"id":182163739,"uuid":"630976301","full_name":"rpakishore/ak_selenium","owner":"rpakishore","description":"Selenium package with requests integration and anti-bot detection measures","archived":false,"fork":false,"pushed_at":"2025-01-15T15:42:32.000Z","size":299,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T02:36:33.320Z","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/rpakishore.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,"zenodo":null}},"created_at":"2023-04-21T15:47:42.000Z","updated_at":"2025-02-05T13:24:24.000Z","dependencies_parsed_at":"2023-09-22T09:27:06.933Z","dependency_job_id":"f93d0a5a-c51a-468a-8a1c-9cc5fd47865e","html_url":"https://github.com/rpakishore/ak_selenium","commit_stats":null,"previous_names":["rpakishore/ak_selenium"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rpakishore/ak_selenium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpakishore%2Fak_selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpakishore%2Fak_selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpakishore%2Fak_selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpakishore%2Fak_selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpakishore","download_url":"https://codeload.github.com/rpakishore/ak_selenium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpakishore%2Fak_selenium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29257773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-10T09:35:07.354Z","updated_at":"2026-02-09T06:04:19.839Z","avatar_url":"https://github.com/rpakishore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--- Heading ---\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eak_selenium\u003c/h1\u003e\n  \u003cp\u003e\n    Selenium package with requests integration and anti-bot detection measures\n  \u003c/p\u003e\n\u003ch4\u003e\n    \u003ca href=\"https://rpakishore.github.io/ak_selenium/\"\u003eDocumentation\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n    \u003ca href=\"https://github.com/rpakishore/ak_selenium/issues/\"\u003eReport Bug\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n    \u003ca href=\"https://github.com/rpakishore/ak_selenium/issues/\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/h4\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/rpakishore/ak_selenium)\n![GitHub last commit](https://img.shields.io/github/last-commit/rpakishore/ak_selenium)\n[![tests](https://github.com/rpakishore/ak_selenium/actions/workflows/test.yml/badge.svg)](https://github.com/rpakishore/ak_selenium/actions/workflows/test.yml)\n\n\u003c!-- Table of Contents --\u003e\n\u003ch2\u003eTable of Contents\u003c/h2\u003e\n\n- [1. About the Project](#1-about-the-project)\n  - [1.1. Features](#11-features)\n  - [2. Installation](#2-installation)\n- [3. Usage](#3-usage)\n  - [3.1. Additional Options](#31-additional-options)\n- [4. Roadmap](#4-roadmap)\n- [5. License](#5-license)\n- [6. Contact](#6-contact)\n\n\u003c!-- About the Project --\u003e\n## 1. About the Project\n\n`ak_selenium` is a Python package that provides an interface for automating browser tasks using Selenium. It comes with built-in functionalities for handling common tasks such as form filling, scrolling, and waiting for elements to load. Additionally, it has a built-in requests session that handles retries and timeouts, making it easier to send HTTP requests.\n\n\u003c!-- Features --\u003e\n### 1.1. Features\n\n- Chrome browser automation using Selenium WebDriver.\n- Built-in methods for form filling, scrolling, and waiting for elements.\n- Anti-bot detection measures\n- Pass selenium headers/cookies to requests library\n- Built-in requests session with retries and timeouts.\n- Ability to use Chrome user data for browser automation.\n- RAM optimization for browser options.\n- Integrates [Helium](https://github.com/mherrmann/helium) for easier automation\n\n\n\u003c!-- Installation --\u003e\n### 2. Installation\n\nuse pip\n\n```bash\npip install ak_selenium@git+https://github.com/rpakishore/ak_selenium\n```\n\u003c!-- Usage --\u003e\n## 3. Usage\n\n```python\nfrom ak_selenium import Chrome, By, Keys\n\nchrome = Chrome(headless=True)                  # Create a new Chrome browser instance\ndriver = chrome.driver                          #Get Chromedriver\nchrome.get(\"https://example.com\")               # Navigate to a webpage\n\n#Wait for element to load\nlocator = (By.TAG_NAME, \"h1\")\nchrome.wait_for_locator(locator)\n\ns = chrome.session                              # Pass selenium session to requests\ns.get(\"https://www.iana.org/domains/reserved\")  # Get a website\n\n# Get a list of websites\n## Will randomize requests to not trigger bot detection\ns.bulk_get([\"https://www.iana.org/domains/reserved\", \"https://www.example.com\"])\n\n```\n\nIntegrated with [Helium](https://github.com/mherrmann/helium) to make it easier to set up automation.\n\nHelium methods and functions can be used as intended in the [original documentation](https://github.com/mherrmann/helium/blob/master/README.md)\n\nExample:\n\n```python\nimport helium\nhelium.wait_until(helium.Button('Download').exists)\n```\n\nAlternatively, helium methods and classes have been collected into two classes `Element` and `Action` for convinience\n\n`Element` exposes the following classes: `Alert`, `Button`, `CheckBox`, `ComboBox`, `Image`, `Link`, `ListItem`, `RadioButton`, `Text`, `TextField` and the method `find_all`\n\n`Action` exposes the following methods: `highlight`, `wait_until`, `refresh`, `attach_file`, `drag_file`, `combobox_select`, `hover`, `write`.\n`Action` also incorporates a `Mouse` sub-class that collect mouse-related methods.\n\nExample:\n\n```python\nfrom ak_selenium import Element, Action, Keys\nimport helium\n\nchrome.get('https://google.com')                      #Go to website\nAction.write('helium selenium github')                #Enter text into text field\nhelium.press(Keys.ENTER)                              #Press Enter\nAction.Mouse.click('mherrmann/helium')                #Click\nchrome.get('https://github.com/login')                #Goto github\nAction.write('username', into='Username')             #Enter Username into Username field\nAction.write('password', into='Password')             #Enter Password into Password field\nAction.Mouse.click('Sign in')                         #Click Sign-in\nAction.Mouse.scroll(direction='down', num_pixels=100) #Scroll down 100px\nhelium.kill_browser()                                 #Close the browser\n```\n\n### 3.1. Additional Options\n\n```python\n# Selenium Overrides\n## Overide default useragent\nchrome.USERAGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) \\\n                    AppleWebKit/537.36 (KHTML, like Gecko) \\\n                    Chrome/83.0.4103.53 Safari/537.36'\n\n## Override implicit and max wait times for selenium\nchrome.IMPLICITLY_WAIT_TIME = 3 #seconds\nchrome.MAX_WAIT_TIME = 5 #seconds\n\n# Requests.Session Override\ns.MIN_REQUEST_GAP = 0.9 #seconds between requests\n```\n\n\u003c!-- Roadmap --\u003e\n## 4. Roadmap\n\n- [ ] Add beautifulsoup integration\n- [ ] Proxy\n\n\u003c!-- License --\u003e\n## 5. License\n\nSee LICENSE for more information.\n\n\u003c!-- Contact --\u003e\n## 6. Contact\n\nArun Kishore - [@rpakishore](mailto:pypi@rpakishore.co.in)\n\nProject Link: [https://github.com/rpakishore/ak_selenium](https://github.com/rpakishore/ak_selenium)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpakishore%2Fak_selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpakishore%2Fak_selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpakishore%2Fak_selenium/lists"}