Answer the question
In order to leave comments, you need to log in
How to parse just a nickname?
How to parse only nick
my code
pages = parsename.text
soup = BeautifulSoup(pages, 'html.parser')
na = soup.find('span', {"class": "nowrap win"})
print(na)
<span class="nowrap win"><img class="icon" src="http://144.76.127.94/view/image/icons/hero_on_0.png"/>
JIунный V, 19 уровень</span>
Answer the question
In order to leave comments, you need to log in
longNick = na.text.strip()
nick = longNick[:longNick.find(',')]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question