[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to obtain the text for BeautifulSoup object

 Hi Team,

could anyone help me?

for webpage having source code like this:
<span class="xst thread-name">
    <a class="xst">name</a>

I only can use below sentence, since there are a lot of tag em and tag a in
other area.
output = bs4.BeautifulSoup(res.content,'lxml').findAll("span",{"class":"xst

how can I get the text in tag em and tag a under tag span?

thank you for your support!