how to get child of a parent beatiful soup code example
Example: get only parent child elements beautiful soup
>>> soup.select('li.test > a')
[<a>link1</a>, <a>link3</a>]
>>> soup.select('li.test > a')
[<a>link1</a>, <a>link3</a>]