假设我有一个 HTML 页面
<p> Some text here </p>
<p> Some other text here </p>
<h1> Title 1 </h1>
<p> Another text here </p>
<p> Some random text here </p>
<h1> Title 2 </h1>
<p> Some text here </p>
<p> Some other text here </p>
<h1>..<h1>
是否可以逐个标签抓取内容的标签
if (<h1>)
then do something
if (<p>)
then do something else
对于每个标签