I am trying to extract div class .sc-8a1b6610-0.TdEDc
value from URL: https://opensea.io/rankings
Basically select at random top nft collection name.
When I load the code in browser I get a blank page how can I fix the code?
$(document).ready(function() {
$.ajax({
url: 'https://opensea.io/rankings',
success: function(data) {
$('#myDiv').html($(data).find('.sc-8a1b6610-0.TdEDc'));
}
});
});
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<div id="myDiv"></div>