{"id":27775833,"url":"https://github.com/09u2h4n/selestium","last_synced_at":"2025-08-12T05:06:48.386Z","repository":{"id":229043440,"uuid":"775477281","full_name":"09u2h4n/selestium","owner":"09u2h4n","description":"A Python module for web scraping with javascript, alternative to requests-html","archived":false,"fork":false,"pushed_at":"2024-04-03T10:57:56.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T07:41:50.119Z","etag":null,"topics":["python","python3","requests","requests-html","selenium","selenium-python","selestium"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/09u2h4n.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":"2024-03-21T13:15:07.000Z","updated_at":"2025-01-03T19:36:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"222b8275-b8f3-42b2-ae53-4dace36888f0","html_url":"https://github.com/09u2h4n/selestium","commit_stats":null,"previous_names":["09u2h4n/selestium"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/09u2h4n/selestium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/09u2h4n%2Fselestium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/09u2h4n%2Fselestium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/09u2h4n%2Fselestium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/09u2h4n%2Fselestium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/09u2h4n","download_url":"https://codeload.github.com/09u2h4n/selestium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/09u2h4n%2Fselestium/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270005591,"owners_count":24510939,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["python","python3","requests","requests-html","selenium","selenium-python","selestium"],"created_at":"2025-04-30T04:57:22.854Z","updated_at":"2025-08-12T05:06:48.371Z","avatar_url":"https://github.com/09u2h4n.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selestium\n\nSelestium is a Python module for web scraping and automation using Selenium WebDriver.\n\n## Features\n\n- Provides a high-level interface for interacting with HTML content in web pages.\n- Supports rendering JavaScript-based web pages using headless browsers (Firefox and Chrome).\n- Allows easy navigation, element identification, and data extraction from web pages.\n\n## Installation\n\nYou can install Selestium using pip:\n\n```\npip install selestium\n```\n\n## Dependencies for Termux\nIn Termux you need some dependencies to work. Later it will bee automatic.\n#### !!CHROME DOES NOT WORK JUST FIREFOX IN TERMUX!!\nFirst update and then install tur and x11 repos\n```\npkg update -y; pkg install -y tur-repo x11-repo\n```\nThen install firefox and geckodriver\n```\npkg install -y firefox geckodriver\n```\nAnd you are ready to go..\n\n## Dependencies for Linux\nIn Linux also you need get [Firefox dependencies](https://www.mozilla.org/en-US/firefox/124.0.1/system-requirements/).\n\nPlease note that GNU/Linux distributors may provide packages for your distribution which have different requirements.\n\nFirefox will not run at all without the following libraries or packages:\nglibc 2.17 or higher\nGTK+ 3.14 or higher\nlibglib 2.42 or higher\nlibstdc++ 4.8.1 or higher\nX.Org 1.0 or higher (1.7 or higher is recommended)\nFor optimal functionality, we recommend the following libraries or packages:\nDBus 1.0 or higher\nNetworkManager 0.7 or higher\nPulseAudio\n\nFor Debian-based distros:\n```\nsudo apt update -y \u0026\u0026 sudo apt install -y \\\n    libc6 \\\n    libgtk-3-0 \\\n    libglib2.0-0 \\\n    libstdc++6 \\\n    xorg\n```\n\n## Usage\n\nHere's a basic example of how to use Selestium to render a web page and extract information:\n\n### Make a Request Without Rendering:\n\n```python\nfrom Selestium import HTMLRequests\n\n# Initialize a HTMLRequests instance with default settings (Firefox browser)\nreq = HTMLRequests()\n\n# Make a GET request to a web page without rendering\nresponse = req.get(\"https://www.example.com\")\n\n# Extract information from the response\nprint(response.content)\n```\n\n### Make a Request With Rendering:\n\n```python\nfrom Selestium import HTMLRequests\n\n# Initialize a HTMLRequests instance with Firefox browser\nreq = HTMLRequests(browser='firefox')\n\n# Get a web page and render it using the browser\nresponse = req.get(\"https://www.example.com\", render=True)\n\n# Extract information from the rendered page\ntitles = response.find(\"h1\")\nfor title in titles:\n    print(title.text)\n```\n\n### Using the Controller Method:\n\n```python\nfrom Selestium import HTMLRequests\n\n# Initialize a HTMLRequests instance with Chrome browser\nreq = HTMLRequests(browser='chrome')\n\n# Get the browser controller (WebDriver) instance\ndriver = req.browser_controller()\n\n# Navigate to a web page\ndriver.get(\"https://www.example.com\")\n\n# Perform additional actions using the browser controller\n# For example, click a button or fill out a form\n# driver.find_element_by_id(\"button_id\").click()\n```\n\n## Contributing\n\nContributions are welcome! If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request on GitHub.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/09u2h4n/selestium/blob/main/LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F09u2h4n%2Fselestium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F09u2h4n%2Fselestium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F09u2h4n%2Fselestium/lists"}