赞
踩
爬取:requests,lxml
数据库插入数据:pymysql
import requests
from lxml import etree
import pymysql
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
}
url = "https://pvp.qq.com/web201605/herolist.shtml"
response = requests.get
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。