This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
Replies: 2 comments 1 reply
-
啊这,老大哥你写的也太细了,感谢感谢 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我发现有些 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
输入
内鬼网网址,例:
角色
https://genshin.honeyhunterworld.com/db/char/keqing/?lang=CHS
武器
https://genshin.honeyhunterworld.com/db/weapon/w_1402/?lang=CHS
输出
角色(内鬼网、BWIKI)
输出 json 示例
各字段对应抓取位置
type
当输入链接中含有
char
字段时,type
的值为角色
。在内鬼网可以抓取到的数据
title
id
在
的值
<img class="gallery_clickable lazy loaded" src="/img/scr/char/10000042/face_70.png" data-src="/img/scr/char/10000042/face_70.png" data-was-processed="true">
当中,匹配:
name
introduce
birthday
,并将月份转换为
x月xx日
的形式element
并将
<img class="char_portrait_card_sea_element sea_enemy_element lazy loaded" src="/img/icons/element/electro_35.png" data-src="/img/icons/element/electro_35.png" data-was-processed="true">
当中的元素进行对应:cv
中文cv
日文cv
constellationName
rarity
数星星
sea_char_stars_wrap
出现了几次mainStat
mainValue
baseATK
ascensionMaterials
拼接链接,并且读取拼接好的链接当中
document.querySelector("#post-6202 > div > div > div > div.custom_title")
中的中文名称levelUpMaterials
拼接链接,并且读取拼接好的链接当中
document.querySelector("#post-6202 > div > div > div > div.custom_title")
中的中文名称talentMaterials
拼接链接,并且读取
document.querySelector("#post-6202 > div > div > div > div.custom_title")
中的中文名称,使用正则表达式抓取「.*」
的内容,拼上后缀的教导
、的指引
、的哲学
constellations
从bwiki抓取
time
拼接字段:
https://wiki.biligame.com/ys/
+素材名
,例:https://wiki.biligame.com/ys/%E3%80%8C%E7%B9%81%E8%8D%A3%E3%80%8D%E7%9A%84%E5%93%B2%E5%AD%A6
(「繁荣」的哲学
要转义)获取:
正则表达式匹配:
周./周./周.
武器
各字段对应抓取位置
type
当输入链接中含有
weapon
字段时,type
的值为武器
。在内鬼网可以抓取到的数据
title
进行匹配:
其他与角色类似
Beta Was this translation helpful? Give feedback.
All reactions