Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
538 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Hello, I've been watching your youtube videos and from them I managed to create a scraping to remove some information from the site https://www.racingpost.com/, using the XML HTTP Request method.
But I came across a problem that I couldn't overcome, I access the link of a specific race, for example:
https://www.racingpost.com/racecards/2/ascot/2021-07-23/788075
So I just want to collect the last race hyperlink for each runner on the card, which in this case is 8.
The code has the following configuration:
</thead> <tbody class="RC-runnerForm__body" data-test-selector="RC-runnerFormBody">
<tr class="ui-table__row RC-runnerForm__row js-form-row" data-test-selector="RC-runnerFormRow">
<td class="ui-table__cell RC-cell RC-runnerForm__bodyCell RC-runnerForm__linkCell">
<a class="ui-link ui-link_table js-popupLink RC-runnerForm__link js-form-hoverLink" href="/results/15/doncaster/2021-07-02/786225" title="Visit attheraces.com Fillies' Handicap" target="_blank" data-test-selector="RC-runnerFormLink__results">
02Jul21 </a>
<a class="ui-link ui-link_table js-popupLink RC-runnerForm__condLink_xn RC-runnerForm__link js-form-hoverLink hidden-sm-up truncate" href="/results/15/doncaster/2021-07-02/786225" title="left-handed, galloping track" target="_blank" data-test-selector="RC-runnerFormLink__results">
Don 5 GF 4HcF 4K </a>
I couldn't create a path to get to the tag<a and get access to the "href".
Could you clarify for me which variable I declare as MSHTML.IHTMLElementCollection and which I declare just as MSHTML.IHTMLElement, and how I Set to walk to the tag<a ?
If you can help me I appreciate it.
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.