Solution for how to extract data-value using beautifulsoup? [closed]
is Given Below:
please help me. I’ve tried many things but I’m unable to do this.
<div class="dfx-singleInstrument__price dfx-rate dfx-font-size-3 font-weight-bold text-right" data-stream-type="price" data-symbol="EURUSD" data-market-id="EURUSD" data-type="bid" data-change-scale="-1" data-unscaling-factor="10000" data-unscaled-decimals="5" data-value="1.18610">
</div>
use:
soup.select_one('.singleInstrument__price')['data-value']