Here the example I can't resolve:
I need to retrieve a text that is several levels below the main class.
The problem is that all the class names are identical and each one is three levels deeper.
Here the example, I need to get the word "Discontinued" from the following code:
<!-- START CODE -->
<html>
<head>
<title>Problem with BeautifulSoup</title>
</head>
<body>
<h1>Book</h1>
<div class="main">
<div class=" product_name">
<div class=" a">
<strong>Level1</strong>
<div class=" b">
<strong>Level1</strong>
<div class=" c">
" A label of level 1 "
<strong>Armed</strong>
</div>
</div>
</div>
<div class=" a">
<strong>Level2</strong>
<div class=" b">
<div class=" c">
" A label of level 2 "
<strong>Cleaned</strong>
</div>
<strong>Level2</strong>
</div>
</div>
<div class=" a">
<strong>Level3</strong>
<div class=" b">
<strong>Level3</strong>
<div class=" c">
" A label of level 3 "
<strong>Suspended</strong>
</div>
</div>
</div>
<div class=" a">
<strong>Level4</strong>
<div class=" b">
<strong>Level4</strong>
<div class=" c">
" A label of level 4 "
<strong>Discontinued</strong>
</div>
</div>
</div>
<div class=" a">
<strong>Level5</strong>
<div class=" b">
<strong>Level5</strong>
<div class=" c">
" A label of level 5 "
<strong>Justify</strong>
</div>
</div>
</div>
<div class=" a">
<strong>Level6</strong>
<div class=" b">
<strong>Level6</strong>
<div class=" c">
" A label of level 6 "
<strong>Free charge</strong>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- END CODE -->
How could I do it with BeautifulSoup?
Thanks for your help!