webbot
Web automation library for python which is based on the selenium framework for web browser automation.
webbot provides a much feature rich automation than selenium for all kinds of automation of webpage. Since the major portion of web automation is to perform actions like click and type into webpage elements , webbot automatically handles finding the right elements to perform the actions.
Features :
click any button or link without having to worry about finding the element first or knowing css_selector etc
Automation works even in case of webpages with dynamically changing id and classname
type text into input fields
Smart scoring algorithm which finds the best match for the element on which you want to perform the action .
Simulate key presses and special key combinations
bidirectional scrolling
Perform an action on webpage elements by applying various filters to select the elements .
Perfrom action on multiple elements at once.
If certain elements don’t have text or visible property , then use either their id , class , css_selector , xpath , tag etc.
Installation :
pip install webbot
If “No distribution found error occurs” just update setuptools using pip install --upgrade setuptools
Quickstart :
Demo code 0 :
from webbot import Browser
web = Browser()
web.go_to('google.com')
web.type('hello its me') # or web.press(web.Key.SHIFT + 'hello its me')
web.press(web.Key.ENTER)
web.go_back()
web.click('Sign in')
web.type('mymail@gmail.com' , into='Email')
web.click('NEXT' , tag='span')
web.type('mypassword' , into='Password' , id='passwordFieldId')
web.click('NEXT' , tag='span') # you are logged in . oohoooo
Demo code 1 :
If multiple buttons with similar properties are to be clicked at once
web = Browser()
web.go_to('siteurl.com')
web.click('buttontext' , multiple = True)
Demo code 2 :
If there are multiple elements and you want to perform action on one of them
web = Browser()
web.go_to('siteurl.com')
# types the text into the 3rd input element when there are multiple input elements with form-input class
web.type('im robo typing' , number = 3 , classname="form-input" )
web.click('Post')
Links :
Documentation : https://webbot.readthedocs.io
Project home : https://github.com/nateshmbhat/webbot
Metadata
Release files for webbot 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| webbot-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for webbot-0.0.4-py3-none-any.whl |
Release files / webbot-0.0.4-py3-none-any.whl
| Download URL | webbot-0.0.4-py3-none-any.whl |
|---|---|
| Size | 12.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc9fe1ad6c98ae64fce4d4b73b02cf24a84c11e2c908aa1d5fcc72f493919c8e
|
|
BLAKE2b-256 checksum How to use checksums |
9cb2e412d44f99bba6cb7f6c337790fc4acfa7842294e48764cbab85babae8ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for webbot 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.