samedi 17 avril 2021

Python unable to scrape javascript

I'm trying to scrape the time and the scores from this website: https://sports.williamhill.com/betting/en-gb/in-play/all

When I inspect the element, it shows:

<span class="btmarket__livescore-item team-a">2</span>

2 is the value I'm after. When I look at the web request I am seeing:

<span class="btmarket__livescore-item team-a"> </span>

(missing the '2').

I've tried using render from HTMLSession and also webdriver but no luck.

Thx!




Aucun commentaire:

Enregistrer un commentaire