Skip to content

TypeScript code snippet – How to get child element li beautifulsoup?

>>> soup.select('li.test > a')
[<a>link1</a>, <a>link3</a>]
See also  Create a directory if it doesn't exist using mkdir in Python
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.