xpath rule json.

This commit is contained in:
小黄瓜 2021-10-20 09:18:13 +08:00
parent 0ae6807a73
commit 5ebd61591d
4 changed files with 219 additions and 0 deletions

60
xpath/94sm.json Normal file
View File

@ -0,0 +1,60 @@
{
"ua": "",
"homeUrl": "http://www.9rmb.com",
"cateNode": "//ul[contains(@class,'navbar-nav')]/li/a[contains(@href, '.html') and not(contains(@href, '6'))]",
"cateName": "/text()",
"cateId": "/@href",
"cateIdR": "/type/(\\d+).html",
"cateManual": {},
"homeVodNode": "//div[@class='col-md-12 movie-item-out']//a[not(contains(@href, '6'))]/parent::*/parent::*/parent::*/div[contains(@class, 'movie-item-out') and position()<10]/div[@class='movie-item']/a",
"homeVodName": "/@title",
"homeVodId": "/@href",
"homeVodIdR": "/show/(\\w+).html",
"homeVodImg": "/img/@src",
"homeVodMark": "/button/text()",
"cateUrl": "http://www.9rmb.com/type/{cateId}/{catePg}.html",
"cateVodNode": "//div[@class='movie-item']/a",
"cateVodName": "/@title",
"cateVodId": "/@href",
"cateVodIdR": "/show/(\\w+).html",
"cateVodImg": "/img/@src",
"cateVodMark": "/button/text()",
"dtUrl": "http://www.9rmb.com/show/{vid}.html",
"dtNode": "//div[@class='container-fluid']",
"dtName": "//div[@class='col-md-9']//div[@class='col-md-4']//img/@alt",
"dtNameR": "",
"dtImg": "//div[@class='col-md-9']//div[@class='col-md-4']//img/@src",
"dtImgR": "",
"dtCate": "//div[@class='col-md-8']//span[@class='info-label' and contains(text(), '类型')]/parent::*/following-sibling::*/text()",
"dtCateR": "",
"dtYear": "//div[@class='col-md-8']//span[@class='info-label' and contains(text(), '日期')]/parent::*/following-sibling::*/text()",
"dtYearR": "",
"dtArea": "//div[@class='col-md-8']//span[@class='info-label' and contains(text(), '国家')]/parent::*/following-sibling::*/text()",
"dtAreaR": "",
"dtMark": "//div[@class='col-md-8']//span[@class='info-label' and contains(text(), '状态')]/parent::*/following-sibling::*/text()",
"dtMarkR": "",
"dtActor": "//div[@class='col-md-8']//span[@class='info-label' and contains(text(), '主演')]/parent::*/following-sibling::*/text()",
"dtActorR": "",
"dtDirector": "//div[@class='col-md-8']//span[@class='info-label' and contains(text(), '导演')]/parent::*/following-sibling::*/text()",
"dtDirectorR": "",
"dtDesc": "//p[@class='summary']/text()",
"dtDescR": "",
"dtFromNode": "//div[contains(@class,'resource-list')]/div[@class='panel-heading']/strong",
"dtFromName": "/text()",
"dtFromNameR": "\\S+\\.(\\S+) \\(",
"dtUrlNode": "//div[contains(@class,'resource-list')]/ul[@class='dslist-group']",
"dtUrlSubNode": "/li/a",
"dtUrlId": "@href",
"dtUrlIdR": "/play/(\\S+).html",
"dtUrlName": "/text()",
"dtUrlNameR": "",
"playUrl": "http://www.9rmb.com/play/{playUrl}.html",
"playUa": "",
"searchUrl": "http://www.9rmb.com/search?wd={wd}",
"scVodNode": "//div[@class='movie-item']/a",
"scVodName": "/@title",
"scVodId": "/@href",
"scVodIdR": "/show/(\\w+).html",
"scVodImg": "/img/@src",
"scVodMark": "/button/text()"
}

49
xpath/agefans.json Normal file
View File

@ -0,0 +1,49 @@
{
"ua": "",
"homeUrl": "https://www.agefans.cc/update",
"cateManual": {
"全部": "",
"中国": "-中国-all-all",
"日本": "-日本-all-all",
"欧美": "-欧美-all-all"
},
"homeVodNode": "//div[@class='blockcontent']//ul[@class='ul_li_a6']/li",
"homeVodName": "/h4[@class='anime_icon2_name']/a/text()",
"homeVodId": "/h4[@class='anime_icon2_name']/a/@href",
"homeVodIdR": "/detail/(\\w+)",
"homeVodImg": "//img/@src",
"homeVodMark": "//img/@title",
"cateUrl": "https://www.agefans.cc/catalog/all-all-all-all-all-time-{catePg}{cateId}",
"cateVodNode": "//div[@class='blockcontent1']/div/a",
"cateVodName": "/img/@alt",
"cateVodId": "/@href",
"cateVodIdR": "/detail/(\\w+)",
"cateVodImg": "/img/@src",
"cateVodMark": "/span[@class='newname']/text()",
"dtUrl": "https://www.agefans.cc/detail/{vid}",
"dtNode": "//div[@id='container']",
"dtName": "//div[@class='div_left']/div[@class='baseblock'][1]/div[@class='blockcontent']/img/@alt",
"dtImg": "//div[@class='div_left']/div[@class='baseblock'][1]/div[@class='blockcontent']/img/@src",
"dtCate": "//div[@class='div_left']/div[@class='baseblock'][2]//span[@class='detail_imform_tag' and contains(text(), '剧情类型')]/following-sibling::*/text()",
"dtYear": "//div[@class='div_left']/div[@class='baseblock'][2]//span[@class='detail_imform_tag' and contains(text(), '首播时间')]/following-sibling::*/text()",
"dtArea": "//div[@class='div_left']/div[@class='baseblock'][2]//span[@class='detail_imform_tag' and contains(text(), '地区')]/following-sibling::*/text()",
"dtMark": "",
"dtDirector": "//div[@class='div_left']/div[@class='baseblock'][2]//span[@class='detail_imform_tag' and contains(text(), '制作公司')]/following-sibling::*/text()",
"dtDesc": "//div[@class='div_right']/div[@class='baseblock'][2]//p/text()",
"dtFromNode": "//div[@id='playlist-div']/ul[@class='menu0']/li",
"dtFromName": "/text()",
"dtUrlNode": "//div[@id='playlist-div']/div[@class='main0']/div",
"dtUrlSubNode": "//li/a",
"dtUrlId": "@href",
"dtUrlIdR": "/play/(\\S+)",
"dtUrlName": "/text()",
"playUrl": "https://www.agefans.cc/play/{playUrl}",
"playUa": "",
"searchUrl": "https://www.agefans.cc/search?query={wd}&page=1",
"scVodNode": "//div[@class='blockcontent1']/div/a",
"scVodName": "/img/@alt",
"scVodId": "/@href",
"scVodIdR": "/detail/(\\w+)",
"scVodImg": "/img/@src",
"scVodMark": "/span[@class='newname']/text()"
}

48
xpath/cjtys.json Normal file
View File

@ -0,0 +1,48 @@
{
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
"homeUrl": "https://cjt521.com",
"dcVipFlag": "true",
"pCfgJs": "https://cjt521.com/static/js/playerconfig.js",
"pCfgJsR": "[\\W|\\S|.]*?MacPlayerConfig.player_list[\\W|\\S|.]*?=([\\W|\\S|.]*?),MacPlayerConfig.downer_list",
"dcShow2Vip": {},
"dcPlayUrl": "true",
"cateNode": "//div[contains(@class,'swiper-container2')]//ul/li/a[contains(@href, 'vodtype')]",
"cateName": "/text()",
"cateId": "/@href",
"cateIdR": "/vodtype/(\\d+).html",
"cateManual": {},
"homeVodNode": "//ul/li[@class='list-width volistwidthb']/div/a",
"homeVodName": "/@title",
"homeVodId": "/@href",
"homeVodIdR": "/voddetail/(\\w+).html",
"homeVodImg": "/div[contains(@class, 'lazy')]/@data-original",
"homeVodMark": "/span[contains(@class, 'list-remarks')]/text()",
"cateUrl": "https://cjt521.com/vodshow/{cateId}--------{catePg}---.html",
"cateVodNode": "//div[contains(@class, 'list-a size')]/ul/li[@class='list-width volistwidthb']/div/a",
"cateVodName": "/@title",
"cateVodId": "/@href",
"cateVodIdR": "/voddetail/(\\w+).html",
"cateVodImg": "/div[contains(@class, 'lazy')]/@data-original",
"cateVodMark": "/span[contains(@class, 'list-remarks')]/text()",
"dtUrl": "https://cjt521.com/voddetail/{vid}.html",
"dtNode": "//body",
"dtName": "//div[contains(@class,'dt-info-box')]/h2/text()",
"dtImg": "//div[contains(@class,'info-img')]/div/@data-original",
"dtFromNode": "//div[contains(@class, 'play_source')]/div[contains(@class,'play_source_tab')]/div/a",
"dtFromName": "/text()",
"dtUrlNode": "//div[contains(@class, 'play_source')]//div[contains(@class, 'play_list_box')]//ul",
"dtUrlSubNode": "/li/a",
"dtUrlId": "@href",
"dtUrlIdR": "/vodplay/(\\S+).html",
"dtUrlName": "/text()",
"dtUrlNameR": "",
"playUrl": "https://cjt521.com/vodplay/{playUrl}.html",
"playUa": "",
"searchUrl": "https://cjt521.com/index.php/ajax/suggest?mid=1&wd={wd}&limit=10",
"scVodNode": "json:list",
"scVodName": "name",
"scVodId": "id",
"scVodIdR": "",
"scVodImg": "pic",
"scVodMark": ""
}

62
xpath/jpys.json Normal file
View File

@ -0,0 +1,62 @@
{
"ua": "",
"homeUrl": "https://www.jpysvip.net",
"cateNode": "//ul[contains(@class,'myui-header__menu')]/li[@class='dropdown-hover']//ul/li/a[contains(@href, 'vodtype') and not(contains(@href, '26'))]",
"cateName": "/text()",
"cateId": "/@href",
"cateIdR": "/vodtype/(\\d+).html",
"cateManual": {},
"homeVodNode": "//div[contains(@class, 'col-lg-wide-75')]//ul[contains(@class,'myui-vodlist')]/li//a[contains(@class,'myui-vodlist__thumb')]",
"homeVodName": "/@title",
"homeVodId": "/@href",
"homeVodIdR": "/voddetail/(\\w+).html",
"homeVodImg": "@data-original",
"homeVodImgR": "\\S+(http\\S+)",
"homeVodMark": "/span[contains(@class,'pic-text')]/text()",
"cateUrl": "https://www.jpysvip.net/vodtype/{cateId}-{catePg}.html",
"cateVodNode": "//ul[contains(@class,'myui-vodlist')]//li//a[contains(@class,'myui-vodlist__thumb')]",
"cateVodName": "/@title",
"cateVodId": "/@href",
"cateVodIdR": "/voddetail/(\\w+).html",
"cateVodImg": "@data-original",
"cateVodImgR": "\\S+(http\\S+)",
"cateVodMark": "/span[contains(@class,'pic-text')]/text()",
"dtUrl": "https://www.jpysvip.net/voddetail/{vid}.html",
"dtNode": "//div[contains(@class,'col-lg-wide-75')]",
"dtName": "//div[@class='myui-content__thumb']/a[contains(@class,'myui-vodlist__thumb')]/@title",
"dtNameR": "",
"dtImg": "//div[@class='myui-content__thumb']/a[contains(@class,'myui-vodlist__thumb')]/img/@data-original",
"dtImgR": "\\S+(http\\S+)",
"dtCate": "//div[@class='myui-content__detail']//span[contains(@class,'text-muted') and contains(text(), '分类')]/following-sibling::*/text()",
"dtCateR": "",
"dtYear": "//div[@class='myui-content__detail']//span[contains(@class,'text-muted') and contains(text(), '年份')]/following-sibling::*/text()",
"dtYearR": "",
"dtArea": "//div[@class='myui-content__detail']//span[contains(@class,'text-muted') and contains(text(), '地区')]/following-sibling::*/text()",
"dtAreaR": "",
"dtMark": "",
"dtMarkR": "",
"dtActor": "//div[@class='myui-content__detail']//span[contains(@class,'text-muted') and contains(text(), '主演')]/following-sibling::*/text()",
"dtActorR": "",
"dtDirector": "//div[@class='myui-content__detail']//span[contains(@class,'text-muted') and contains(text(), '导演')]/following-sibling::*/text()",
"dtDirectorR": "",
"dtDesc": "//div[@class='myui-content__detail']//span[contains(@class,'text-muted') and contains(text(), '简介')]/parent::text()",
"dtDescR": "",
"dtFromNode": "//a[@data-toggle='tab' and contains(@href, 'playlist')]",
"dtFromName": "/text()",
"dtFromNameR": "",
"dtUrlNode": "//div[contains(@class,'tab-content')]/div[contains(@id, 'playlist')]",
"dtUrlSubNode": "//li/a",
"dtUrlId": "@href",
"dtUrlIdR": "/vodplay/(\\S+).html",
"dtUrlName": "/text()",
"dtUrlNameR": "",
"playUrl": "https://www.jpysvip.net/vodplay/{playUrl}.html",
"playUa": "",
"searchUrl": "https://www.jpysvip.net/index.php/ajax/suggest?mid=1&wd={wd}&limit=10",
"scVodNode": "json:list",
"scVodName": "name",
"scVodId": "id",
"scVodIdR": "",
"scVodImg": "pic",
"scVodMark": ""
}