web automation tool selenium based
Project description
#autoz usage pip install autoz
#NB -> the functions only take in xpath
#script from autoz.kit import * from time import sleep
#init drivers, browser bin, background features #the script will run in background unless background is set to False init()
#go to a page go('https://odibets.com/live/')
Search button
find_click('/html/body/div[1]/div/div[2]/div[1]/div[3]')
Input area
find_click('//*[@id="modal"]/div/div[1]/input')
Enter code
clear_input('//*[@id="modal"]/div/div[1]/input', '1127')
Teams
home = extract_text('/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/a/div[1]') away = extract_text(d, '/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/a/div[2]')
get Scores by extracting text
home_score = extract_text('/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div/span[1]') away_score = extract_text('/html/body/div[1]/div/div[8]/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div/span[2]')
print(f'{home} - {away}') print(f'scores: {home_score} - {away_score}')
#excute bash commands inside python execute_bash(f"echo '{home} - {away} ,scores: {home_score}:{away_score}' > ball.txt")
#want path of file f_path=find_file('ball.txt')
sleep(1000)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoz-0.0.1.tar.gz.
File metadata
- Download URL: autoz-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39858cc229e8ca17a40c6524e2db2d608cb605ad3d00d469cb749925e7611d11
|
|
| MD5 |
b3455374fa2488afd30789acf2b4e501
|
|
| BLAKE2b-256 |
3fa9ab00b432935c4ca73629fe093d5157f7b2e4a29d59186f672736063a1996
|
File details
Details for the file autoz-0.0.1-py3-none-any.whl.
File metadata
- Download URL: autoz-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f54a72fa545a29e198ee74427419ce2439a0190593f7bb9986d60f71d01d00ac
|
|
| MD5 |
b9c9a71086ca253abe94f5a4507bc539
|
|
| BLAKE2b-256 |
65405c9f8e80022a30c691993c1092cc5cba8d6c49c743afe55bb00cdb98bd30
|