I'm using beautiful soup. There is a tag like this:

`<li><a href="example"> s.r.o., <small>small</small></a></li>` 

I want to get the text within the anchor `<a>` tag only, without any from the `<small>` tag in the output; i.e. " *`s.r.o.,`* "

I tried `find('li').text[0]` but it does not work.

Is there a command in BS4 which can do that?