I am trying to get this url out of this line but i have no idea how to get it :-
<div class="photo" style="background-image: url("https://images.deliveryhero.io/image/fd-bd/Products/1032643.jpg?width=200");"></div>
it is inside this :-
<picture data-testid="menu-product-image" style="background-image: url("https://micro-assets.foodora.com/img/logo-simple-fp.svg");"><div class="photo" style="background-image: url("https://images.deliveryhero.io/image/fd-bd/Products/1032643.jpg?width=200");"></div></picture>
thanks
source https://stackoverflow.com/questions/69744356/how-to-get-url-out-of-the-style-tag-using-selenium-in-python
Comments
Post a Comment