hello everyone !
i am trying to get 2 <img> source inside a div called > " playerAvatarAutoSizeInner " , but I came across a " problem ", sometimes depending on the parameter, it may be that there is another div inside " playerAvatarAutoSizeInner ", called > " profile_avatar_frame " and it may not exist ... as in the examples below:
example of div " profile_avatar_frame " inside " playerAvatarAutoSizeInner "
example of div " playerAvatarAutoSizeInner " with only 1 <img>
I would like to get only the "src" of the img tags that are inside this div called : " playerAvatarAutoSizeInner ",
but I'm having a hard time getting the src. can anyone help me?
i am trying to get 2 <img> source inside a div called > " playerAvatarAutoSizeInner " , but I came across a " problem ", sometimes depending on the parameter, it may be that there is another div inside " playerAvatarAutoSizeInner ", called > " profile_avatar_frame " and it may not exist ... as in the examples below:
example of div " profile_avatar_frame " inside " playerAvatarAutoSizeInner "
HTML:
<div class="playerAvatarAutoSizeInner">
<div class="profile_avatar_frame">
<img src="https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/items/465200/e89b3a70625c980c3d68869f5cdb1da9baa447f8.png">
</div>
<img src="https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/items/1504020/397b0a7e2d1355bca92d3e803270f7947ba973aa.gif">
</div>
example of div " playerAvatarAutoSizeInner " with only 1 <img>
HTML:
<div class="playerAvatarAutoSizeInner">
<img src="https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/0c/0c82230c58063b3a7f1beec38528afb0613855be_full.jpg">
</div>
I would like to get only the "src" of the img tags that are inside this div called : " playerAvatarAutoSizeInner ",
but I'm having a hard time getting the src. can anyone help me?