这是错误:在此上下文中元素ul不允许作为元素ul的子元素。 (抑制此子树中的更多错误。)
这是html:
<tr>
<td> Incorporated Business Accounts - additional requirements:
<ul>
<li> Business name and address </li>
<li> Nature of business and date of incorporation </li>
<li> BIN number</li>
<li> Certificate of Incorporation</li>
<li> Names of company directors</li>
<li> Names of directors </li>
<li> Proof of signing authority </li>
<ul>
<li> Ltd Companies: Memorandum and Articles of Incorporation/Bylaws </li>
<li> Registered Societies: Constitution and Bylaws or minutes</li>
<li> Strata Corporations: Bylaws or minutes</li>
</ul>
<li> Photo ID for all signers: if more than 3 signers, must ID at least 3 of those persons</li>
</ul>
</td></tr>
</tbody>
</table>
答案 0 :(得分:3)
您需要嵌套在The code that caused this warning is on line 3 of the file Dictionary.py. To
get rid of this warning, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "lxml")
markup_type=markup_type))
{'Noun': ['any of various mostly cold-blooded aquatic vertebrates usually having scales and breathing through gills', 'the flesh of fish used as food', '(astrology', 'the twelfth sign of the zodiac; the sun is in this sign from about February 19 to March 20'], 'Verb': ['seek indirectly', 'catch or try to catch fish or shellfish']}
标记下,如下所示:
<li>
答案 1 :(得分:1)
....
<li> Proof of signing authority
<ul>
<li> Ltd Companies: Memorandum and Articles of Incorporation/Bylaws </li>
<li> Registered Societies: Constitution and Bylaws or minutes</li>
<li> Strata Corporations: Bylaws or minutes</li>
</ul>
</li>
<li> Photo ID for all signers: if more than 3 signers, must ID at least 3 of those persons</li>
....