这是我的代码:import requestsfrom bs4 import BeautifulSouppage = requests.get('https://web.archive.org/web/20121007172955/https://www.nga.gov/collection/anZ1.htm')soup = BeautifulSoup(page.text, 'html.parser')name_list = soup.find(class_='BodyText')name_list_item = name_list.find_all('a')for i in name_list_item: names = name_list.contents[0] print(names)然后我运行了它,但终端中没有显示任何内容,除了像这样的空格:
添加回答
举报
0/150
提交
取消