Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoz-0.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoz-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for autoz-0.0.1.tar.gz
Algorithm Hash digest
SHA256 39858cc229e8ca17a40c6524e2db2d608cb605ad3d00d469cb749925e7611d11
MD5 b3455374fa2488afd30789acf2b4e501
BLAKE2b-256 3fa9ab00b432935c4ca73629fe093d5157f7b2e4a29d59186f672736063a1996

See more details on using hashes here.

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

Hashes for autoz-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f54a72fa545a29e198ee74427419ce2439a0190593f7bb9986d60f71d01d00ac
MD5 b9c9a71086ca253abe94f5a4507bc539
BLAKE2b-256 65405c9f8e80022a30c691993c1092cc5cba8d6c49c743afe55bb00cdb98bd30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page