Try this
li = soup.find('li', {'class': 'text'})
children = li.findChildren("a" , recursive=False)
for child in children:
print(child)
More Related Contents:
- How to find elements by class
- Beautiful Soup findAll doesn’t find them all
- Can I remove script tags with BeautifulSoup?
- BeautifulSoup findAll() given multiple classes?
- How can I get href links from HTML using Python?
- BeautifulSoup webscraping find_all( ): finding exact match
- How to load all entries in an infinite scroll at once to parse the HTML in python
- BeautifulSoup innerhtml?
- Understand the Find() function in Beautiful Soup
- Convert a HTML Table to JSON
- python beautifulsoup iframe document html extract
- BeautifulSoup: extract text from anchor tag
- How to find all comments with Beautiful Soup
- How to find tag with particular text with Beautiful Soup?
- How find specific data attribute from html tag in BeautifulSoup4?
- Exclude unwanted tag on Beautifulsoup Python
- How to install beautiful soup 4 with python 2.7 on windows
- How to find the comment tag with BeautifulSoup?
- BeautifulSoup return unexpected extra spaces
- BeautifulSoup: get css classes from html
- How to get inner text value of an HTML tag with BeautifulSoup bs4?
- How to scrape dynamic webpages by Python
- Using Find_All function returns an unexpected result set
- Scraping: SSL: CERTIFICATE_VERIFY_FAILED error for http://en.wikipedia.org
- Difference between .string and .text BeautifulSoup
- Scrape a dynamic website
- How to scrape only visible webpage text with BeautifulSoup?
- How can I get text of an element in Selenium WebDriver, without including child element text?
- Change the color of text within a pandas dataframe html table python using styles and css
- beautiful soup just get the value inside the tag