For example, the following html
He is under the span tag class name, id is-like-span
In this way, the method can be carried out by such code:
isCliked = soup.find('span', id = 'is-like-span'
You can get it in this way. If it is a string, you can call get_text ().