python code screenshot capture
what is the matter? about it?
html = """ <html><body>(html)(body)
<h1>(h1)what is the scraping(/h1)</h1>
<p>(p)To analyze a web page(/p)</p>
<p>(p)To extract the desired part(/p)</p>
(/body)(/html)</body></html> """
soup = BeautifulSoup(html, 'html.parser')
title = soup.find(id="title")
body = soup.find(id="body")
print ("title=" + title.string)
print ("body=" + body.string)