beautifulsoup: finding specific class name in nested div
<p>I try to get reviews in agoda site for analysis by using beautifulsoup</p>

<p>i have inspected and see that the reviews is in :</p>

<pre><code>&lt;div class="container-agoda"&gt;
    &lt;div class="a"&gt;
        &lt;div class="b"&gt;
            &lt;div class="c"&gt;
                &lt;div class="d"&gt;
                    &lt;div class="col-xs-9 review-comment" data-selenium="comments-detail"&gt;&gt;
                        &lt;div name="review-title" class="title" data-selenium="comments-title"&gt;
                            HAD 1 HOUR SLEEP
                        &lt;/div&gt;
                        &lt;div class="review-comment-section"&gt;
                            &lt;div class="comment-detail" data-selenium="reviews-comments"&gt;
                                &lt;span&gt;Great location&lt;/span&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>but this class in nested in 10+ classes</p>

<p>I have tried by </p>

<pre><code>for div in soup.findAll('div', attrs={"class":"comment-detail"}):
    print(div)
</code></pre>

<p>but it get nothing.</p>

<p>Is it have a method for get an exactly as find ''' class="comment-detail" data-selenium="reviews-comments" ''' or any suggestion.</p>

<p>Thank you.</p>