Apr-10-2021, 07:55 PM
(This post was last modified: Apr-10-2021, 07:55 PM by johnboy1974.)
Hi,
I'm trying to scrape the values from the following url 'https://sports.williamhill.com/betting/en-gb/in-play/football' and using requests.get to call it.
When I inspect the element and search for some text next to the value in the response, it has what looks like to be a java script function.
In the attached, I'm trying to extract the score of the match that's 1-4. As per the right hand side, I'm searching the response for the text '__livescore-item team-a">'
Browser:
https://pasteboard.co/JWIGpGp.png
Response:
https://pasteboard.co/JWII0JL.png
I've also tried render from HTMLSession but that didn't seem to work either :(
Cheers,
J
I'm trying to scrape the values from the following url 'https://sports.williamhill.com/betting/en-gb/in-play/football' and using requests.get to call it.
When I inspect the element and search for some text next to the value in the response, it has what looks like to be a java script function.
In the attached, I'm trying to extract the score of the match that's 1-4. As per the right hand side, I'm searching the response for the text '__livescore-item team-a">'
Browser:
https://pasteboard.co/JWIGpGp.png
Response:
https://pasteboard.co/JWII0JL.png
I've also tried render from HTMLSession but that didn't seem to work either :(
Cheers,
J