Web Scraping for Comments
import bs4 as bsimport urllib.requestsource = urllib.request.urlopen('http://www.pythonchallenge.com/pc/def/ocr.html').read()soup = bs.BeautifulSoup(source, 'lxml')print(soup.find_all('<!--'))
You must be logged in to post. Please login or register an account.