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.2.tar.gz
(4.5 kB
view hashes)