AI utility functions for webscraping and selenium automation scripts
Project description
selenium-ai
AI utility functions for webscraping and selenium automation scriptsInstallation
pip install selenium-ai
Requirements
- Written for Python 3.3+
- Requires selenium, bs4
- Requires installation of geckodriver compatible with selenium. Read about setup here
Features
The following features are available:
- find_elements_by_attribute_pattern: returns elements with attributes that match a regex pattern.
Find Elements by Attribute Pattern
from selenium_ai import ElementFinder
from selenium import webdriver
driver = webdriver.Firefox()
element_finder = ElementFinder(driver)
driver.get("https://bing.com")
elements = element_finder.find_elements_by_attribute_pattern("enter your search term")
Returns list of selenium elements
Credits
This package was created with Cookiecutter and the cs01/cookiecutter-pypackage
project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selenium_ai-0.1.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for selenium_ai-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15750d0b97d216d6cb80fdd143b603d6e410d03e2e563ccf6e0987d5fc055be1 |
|
MD5 | 561324d48dbab0a95ce9aebcb569bd67 |
|
BLAKE2b-256 | 1b7c03275c244ec19594be69fcfe917212246b8a4bfa562bcc9e2ce1b960f667 |