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 details)
File details
Details for the file selenium_ai-0.1.2.tar.gz.
File metadata
- Download URL: selenium_ai-0.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9750eec5b39794bee3d5fdf27d619b224494caf86f8e7e2b22dcd049c4d7b128
|
|
| MD5 |
3768760aff08539d76ee297ca1305785
|
|
| BLAKE2b-256 |
07fa309f96b4f65317bed77b9171439133d3bde6ed47c5cfcfe58fa21b47379c
|