python爬取”顶点小说网“《纯阳剑尊》的示例代码
爬取”顶点小说网“《纯阳剑尊》 代码 import requests from bs4 import BeautifulSoup # 反爬 headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, \ like Gecko) Chrome/70.0.3538.102 Safari/537.36' } # 获得请求 def open_url(url): response = requests.get(url, headers=headers) respon
用户评论