I'm very new to Webscraping and I'm struggling to get the values of two attributes from specific element
I want to find the data-diffusion-decimal
& data-diffusion-history
soup.findAll('div',attrs={"class":"RC-runnerPriceWrapper"})
What I get back is:
<div class="RC-runnerPriceWrapper PC-bestOddsContainer js-diffusionHorsesList js-horsesList js-bestOddsPriceContainer" data-diffusion-horsename="Dinons"> <a class="ui-btn RC-runnerPrice ui-priceBtn_noPrice js-diffusionPriceValue js-betHandler js-runnerPrice js-runnerPriceBestOdds" data-test-selector="RC-cardPage-runnerPrice" href="#"></a>
This is as far as I get but what I need isn't contained in the result. Any advice greatly appreciated