+ 2

How to extract 'data-src' url from this line ?

It's should print full url example : ( https://cdni.example_domain.com/460/7/47/26565500/6565500_051_51d5.jpg) <img alt="Chechik, Karmen Karma, Megan Rain 26565500" data-src="https://cdni.example_domain.com/460/7/47/26565500/2 6565500_051_51d5.jpg" height="450" src="https://static.example_domain.com/style4/img/1px.png" width="300"/>

27th Jun 2020, 5:11 AM
Lola
Lola - avatar
2 Réponses
+ 1
// assuming there's only one img document.querySelector('img').dataset.src https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/dataset
27th Jun 2020, 5:20 AM
Calviղ
Calviղ - avatar
0
uzbekmisz pythonni orgating menga
29th Jun 2020, 8:18 AM
ahadhon dadabaev