def get_avatar(self) -> str:
"""Will return the url of the avatar of the user."""
for div in self.soup_main.find_all("div", {'class':'profile_avatar_frame'}):
div.decompose()
return str(self.soup_main.find('div', class_='playerAvatarAutoSizeInner').find('img')['src'])
I just added :
for div in self.soup_main.find_all("div", {'class':'profile_avatar_frame'}):
div.decompose()
This code removes the div where Steam Avatar Frame are stored.
Here's my solution :
Line 213 :
I just added :
This code removes the div where Steam Avatar Frame are stored.