I want to **scrape** some particular peice of html code.

my python code :

```
    soup = '''

            <p>
                <strong> abc </strong>
            </p>

            <ul>
                <li> 123 </li>
                <li> 456 </li>
            </ul>
    '''

    import bs4
    soup = bs4.BeautifulSoup(soup, 'html.parser')
    for link in soup.find_all('strong') :
        k = link.next_sibling
        print (link.text)
        print (k)
        print (k.text)

```

and output :

```
    abc

    AttributeError: 'NavigableString' object has no attribute 'text'

```

How can i extract "123" and "456" using above tags?

Thanks .