【发布时间】:2020-04-06 17:58:18
【问题描述】:
例如,我正在尝试从标签为<a&#32;href="https: evisa.mfa.am "> 的网站中删除数据,请查看此website
BeautifulSoup 有没有办法从非 html 标签中提取数据?
这是来自上述链接的整个 html 页面的 sn-p
<br/>2. Airlines must provide advance passenger information of scheduled arrival of nationals of Antigua and Barbuda and resident diplomats. <br/><br/><b>ARGENTINA</b> - published 02.04.2020 <br/>Passengers are not allowed to enter Argentina until 12 April 2020.<br/><br/><b>ARMENIA</b> - published 22.03.2020 <br/>1. Nationals of China (People's Rep.) with a normal passport are no longer visa exempt. <br/>2. Nationals of Iran can no longer obtain a visa on arrival. They must obtain a visa or an e-visa prior to their arrival in Armenia. The e-visa can be obtained at <a href="https://evisa.mfa.am/">https://evisa.mfa.am/</a> <br/>3. Passengers who have been in Austria, Belgium, China (People's Rep.), Denmark, France, Germany, Iran, Italy, Japan, Korea (Rep.), Netherlands, Norway, Spain, Sweden, Switzerland or United Kingdom in the past 14 days are not allowed to enter Armenia.<br/>- This does not apply to nationals or residents of Armenia.<br/>- This does not apply to spouses or children of nationals of Armenia.<br/>- This does not apply to employees of foreign diplomatic missions and consular institutions.<br/>- This does not apply to representations of official international missions or organizations.<br/>4. Nationals of Armenia who have been in Austria, Belgium, China (People's Rep.), Denmark, France, Germany, Iran, Italy, Japan, Korea (Rep.), Netherlands, Norway, Spain, Sweden, Switzerland or United Kingdom in the past 14 days must undergo 14-days of quarantine or self-isolation regime.
【问题讨论】:
-
请提供输入和预期输出的示例!
-
@αԋɱҽԃαмєяιcαη 我已经添加了一个小的 html 代码的 sn-p,其中包含一个非 html 标记,但是您仍然更喜欢查看整个 html 页面源,您可以参考问题中网站的链接
-
检查下面的答案
标签: python beautifulsoup