Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

258
Views
cómo obtener el rango del enlace html > td.a > Javascript en python

i web t para crear una herramienta pequeña de python, para el enlace javascript del contenido de la tabla web de selenio, pero no estoy muy seguro de cómo escribir.

https://bet.hkjc.com/racing/index.aspx?lang=en&date=2022-03-06&venue=ST&raceno=8

#horseTable > tbody > tr > td > a

 for race in range(1, race_count+1): driver.get( '.com' ) ** tbody = driver.find_elements_by_css_selector('[id="horseTable"] tbody')[0] trs = tbody.find_elements_by_css_selector('tr') tds = trs.find_elements_by_css_selector('#horseTable > tbody > tr > td > a') ** * tr_header = trs[0] trs_body = trs[ 0 : -1 ] tds_link = tds[0 : -1] * for td in tds: row_header.append(td.text.strip() ) data = [] for tr in trs_body: row = [] tds = tr.find_elements_by_css_selector('td') for td in tds: row.append( td.text.strip() ) data.append( row ) now = str(datetime.datetime.now())[0:19] * link = [] link = browser.find_element_by_xpath('#horseTable > tbody > tr > td > a') link.click() * ```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!