xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 2KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發布日期: 2021-05-28
  • 語言: Python
  • 標簽: 爬蟲??python??

資源簡介

在課余閑暇之時,我們可以使用腳本爬取王者榮耀的數據,包括每個英雄的技能介紹,方便對每個版本英雄的比較和判別英雄強度,這都是必不可少的一個好方法

資源截圖

代碼片段和文件信息

import?requests
import?re
import?os
import?time
r?=?requests.get(‘https://pvp.qq.com/web201605/herolist.shtml‘)
r.encoding=“gbk“
html?=?r.text
http?=?“https://pvp.qq.com/web201605/“
dirs?=?os.path.abspath(‘.‘)
if?os.path.isdir(dirs+‘/‘+‘王者榮耀‘)?:
????print(“存在王者榮耀目錄,請手動刪除該目錄“)
????exit(0)
else?:os.makedirs(dirs+‘/‘+‘王者榮耀‘)
dir_name?=?re.findall(r‘
  • for?i?in?dir_name:
    ????time.sleep(1)
    ????r?=?requests.get(http+i)
    ????r.encoding=‘gbk‘
    ????html1=r.text
    ????hero?=?re.findall(r‘(.*?)‘html1)
    ????print(hero)
    ????skin?=?re.findall(r‘‘html1)
    ????skill_name?=?re.findall(r‘

  • 評論

    共有 條評論