Grab4K.json 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "ua": "",
  3. // 首页地址 用于获取 分类和首页推荐
  4. "homeUrl": "https://www.grab4k.com",
  5. // 分类节点
  6. "cateNode": "//div[@class='nav']//a[contains(@href,'/vod/')]",
  7. // 分类名
  8. "cateName": "/@title",
  9. // 分类id
  10. "cateId": "/@href",
  11. // 分类id二次处理正则
  12. "cateIdR": "/vod/show/id/(\\S+).html",
  13. // 手动设置分类,如果手动设置了分类则不使用上面的分类xpath获取分类 例如 "cateManual": {"电影": "1", "电视剧": "2"},
  14. "cateManual": {},
  15. // 首页推荐视频的节点
  16. "cateVodNode": "//div[@class='module-item-pic']",
  17. "homeVodName": "/a/@title",
  18. "homeVodNameR": "",
  19. "homeVodId": "/a/@href",
  20. "homeVodIdR": "/down/(\\S+).html",
  21. "homeVodImg": "/img/@data-src",
  22. "homeVodImgR": "",
  23. "homeVodMark": "/parent::*//span[contains(text(),'豆瓣')]/text()",
  24. // 分类页地址 {cateId} 分类id {catePg} 当前页
  25. "cateUrl": "https://www.grab4k.com/vod/show/id/{cateId}/page/{catePg}.html",
  26. // 同上面的homeVod字段 分类列表中的视频信息
  27. "cateVodNode": "//div[@class='module-item-pic']",
  28. "cateVodName": "/a/@title",
  29. "cateVodNameR": "",
  30. "cateVodId": "/a/@href",
  31. "cateVodIdR": "/down/(\\S+).html",
  32. "cateVodImg": "/img/@data-src",
  33. "cateVodImgR": "",
  34. "cateVodMark": "/parent::*//span[contains(text(),'豆瓣')]/text()",
  35. // 详情页地址 用于获取详情页信息 及 播放列表和地址
  36. "dtUrl": "https://www.grab4k.com/down/{vid}.html",
  37. // 详情节点
  38. "dtNode": "//main[@id='main']",
  39. // 视频名
  40. "dtName": "//img[@alt]/@alt",
  41. "dtNameR": "",
  42. // 视频图片
  43. "dtImg": "//img[@alt]/@data-src",
  44. "dtImgR": "",
  45. // 视频分类
  46. "dtCate": "//div[@class='video-info-aux scroll-content']/a[1]/text()",
  47. "dtCateR": "",
  48. // 视频年份
  49. "dtYear": "//div[@class='video-info-aux scroll-content']/a[2]/text()",
  50. "dtYearR": "",
  51. // 视频地区
  52. "dtArea": "//div[contains(@class,'video-info-aux')]/a[3]/text()",
  53. "dtAreaR": "",
  54. // 视频状态
  55. "dtMark": "//span[contains(text(),'更新')]/following-sibling::*//text()",
  56. "dtMarkR": "",
  57. // 主演
  58. "dtActor": "concat(//span[contains(text(),'主演')]/following-sibling::*//text())",
  59. "dtActorR": "",
  60. // 导演
  61. "dtDirector": "concat(//span[contains(text(),'导演')]/following-sibling::*//text())",
  62. "dtDirectorR": "",
  63. // 视频简介
  64. "dtDesc": "//div[contains(@class,'video-info-content')]/span/text()",
  65. "dtDescR": "",
  66. // 播放源节点
  67. "dtFromNode": "//div[@id='download-list']",
  68. // 播放源名称
  69. "dtFromName": "//h2/text()",
  70. // 二次处理正则
  71. "dtFromNameR": "",
  72. // 播放列表节点
  73. "dtUrlNode": "//div[@class='module-row-one']",
  74. // 播放地址节点
  75. "dtUrlSubNode": "/div[last()]/a/div[@class='module-row-title']",
  76. // 播放地址
  77. "dtUrlId": "/p/text()",
  78. // 二次处理正则
  79. "dtUrlIdR": "(\\S+)&\\S+",
  80. // 剧集名称
  81. "dtUrlName": "/h4/text()",
  82. // 二次处理正则
  83. "dtUrlNameR": "",
  84. // 播放页面的地址 {playUrl} 对应上面 dtUrlId 获取到的地址
  85. "playUrl": "{playUrl}",
  86. // 解析webview的user-agent
  87. "playUa": "",
  88. // 搜索地址
  89. "searchUrl": "https://www.grab4k.com/vod/search.html?wd={wd}",
  90. "scVodNode": "//div[@class='module-item-pic']",
  91. "scVodName": "/a/@title",
  92. "scVodNameR": "",
  93. "scVodId": "/a/@href",
  94. "scVodIdR": "/down/(\\S+).html",
  95. "scVodImg": "/img/@data-src",
  96. "scVodImgR": "",
  97. "scVodMark": "/parent::*//span[contains(text(),'豆瓣')]/text()"
  98. }