2,760
社区成员
发帖
与我相关
我的任务
分享
req=urllib.request.Request(url=novel_url,headers=headers)
request=urllib.request.urlopen(req)
html=lxml.html.parse(request)
hrefs=html.xpath('//dd/a/@href')
for href in hrefs[16:]:
chapter_url_list.append(urllib.parse.urljoin(novel_base_url,href))
print(chapter_url_list)[/align]