Loading...
接口地址:https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js?ts=2727979接口来自官方网站,如失效自行抓包import json import requests url = 'https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.j...
爬取网站为:https://jn.58.com/chuzu/?PGTID=0d100000-0010-997a-6ba0-3b2a61df3202&ClickID=2import requests from lxml import etree url = 'https://jn.58.com/chuzu/?PGTID=0d100000-0010-997a-6ba0-3b2a61df3202...
import requests import json url = 'https://www.vivo.com/store/shops' headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.463...
将图片按照每个英雄一个文件夹分类,存到代码文件相同目录下的王者荣耀目录下import os import requests url = 'https://pvp.qq.com/web201605/js/herolist.json' headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe...
解析京东评论到数据库中:0import requests import json import pymysql def jd_data(cursor): url = 'https://club.jd.com/comment/productPageComments.action?productId=100026667884&score=0&sortType=5&...