soup = BeautifulSoup(content, html.parser ) return soup.find_all('item') I would like to instead use: soup = BeautifulSoup(content, html.parser ) while True: yield soup.next_item_ge...
from bs4 import BeautifulSoup import sys soup = BeautifulSoup(open(sys.argv[2]), 'html.parser') print(soup.prettify) if sys.argv[1] == h : h2s = soup.find_all( h2 ) for h in h2s: print(h....