AI utility functions for webscraping and selenium automation scripts
Project description
easy-selenium
Simple but effective selenium functions for lazy people like meInstallation
pip install easy-selenium
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.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for selenium_ai-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738c939ada90a49f4d1e7a561742ea12437bdd13188183f0b963594474308c94 |
|
MD5 | ae1cf55038aa5bda3071c1ef04788c74 |
|
BLAKE2b-256 | 9d09f3bf184cf48fe62bc1bbfead1d0a8a313f3ae3ff7b57f9a7fdacad96a660 |