beautifulsoup get nodes where child elements code example
Example: how to get child element li beautifulsoup
>>> soup.select('li.test > a')
[<a>link1</a>, <a>link3</a>]
>>> soup.select('li.test > a')
[<a>link1</a>, <a>link3</a>]