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

268
Views
how to get range the html > td.a > Javascript link in python

i web t to create a the small python tool, For selenium web table content javascript link,But i'm not quite sure how to write?

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!