I am trying to write a python program that will count the words on a web page. I use Beautiful Soup 4 to scrape the page but I have difficulties accessing nested HTML tags (
Try this one :
data = [] for nested_soup in soup.find_all('xyz'): data = data + nested_soup.find_all('abc') # data holds all shit together
Maybe you can turn in into lambda and make it cool, but this works. Thanks.