我一直在尝试使用BS刮这个网页,但无济于事。任何人都可以帮我吗?我不确定这个网页有什么问题,或者我的代码有问题。 from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup
my_url = "https://www.cea.gov.sg/Custom/CEA/PublicRegister/Page/Pub
我想提取所有的网址,并将所有这些网址放入列表中。但是,当我运行代码时,它显示一条错误消息:"tag[key] returns the value of the 'key' attribute for the tag, and throws an exception if it's not there."我想知道如何解决此问题。 我的代码如下: import urllib.request
from