Total Pageviews

Saturday 8 June 2024

CatVodTVSpider1

 猫影视(TVBox系列、FongMi的影视等)自定义爬虫开发调试项目.

    说明

    1.基于这些开源的项目。

    CatVodTVSpider项目TvJar-1项目tvjar_testCatVodSpider

    • 在此感谢这些开源项目,感谢 CatVodTVOfficial、q215613905、asters1、FongMi

    • 初次接触的话建议查看原来的 README.md,里面有关于一些参数说明。

    2.编写spider说明:

    如果需要用 Java 编写和调试 spider 的话,可以参考另一个项目 TVJar_test

    在 TVJar_test 项目里面的 demo 包下面有多个 demo 样例可以参考和调试。 在此感谢 asters1 开源了 tvjar_test 项目。

    3.编译和构建 jar:

    在调试完后,可以将 TVJar_test 项目调试后的 spider 代码拷贝到当前项目 CatVodTVSpider 对应的包下面,然后执行 buildAndGenJar.bat 就可以得到 jar 包了。

    4.配置接口

    FongMi的影视 配置加速地址1: https://ghproxy.net/https://raw.githubusercontent.com/zhixc/CatVodTVSpider/main/json/FongMi_TV_config.json

    FongMi的影视 配置加速地址2: https://ghproxy.com/https://raw.githubusercontent.com/zhixc/CatVodTVSpider/main/json/FongMi_TV_config.json

    TVBox配置加速地址1: https://ghproxy.net/https://raw.githubusercontent.com/zhixc/CatVodTVSpider/main/json/tvbox_config.json

    TVBox配置加速地址2: https://ghproxy.com/https://raw.githubusercontent.com/zhixc/CatVodTVSpider/main/json/tvbox_config.json

    5.推荐的软件

    强烈推荐使用 FongMi 的影视,支持自动换源,非常强大,作者持续更新维护。其仓库地址:https://github.com/FongMi/TV

    如果需要播放磁力的话,可以使用俊版TVBox、takagen99版TVBox,安装包发布仓库:https://github.com/o0HalfLife0o/TVBoxOSC

    俊版仓库地址:https://github.com/q215613905/TVBoxOS

    takagen99版仓库地址 https://github.com/takagen99/Box

    6.关于直播(爬虫版)使用说明

    • 第一种写法,这种是早期写的,比较难阅读和编写
    {"key":"Live2Vod","name":"电视直播","type":3,"api":"csp_Live2Vod","searchable":1,"ext":"南风$https://agit.ai/Yoursmile7/TVBox/raw/branch/master/live.txt#饭太硬$https://agit.ai/fantaiying/fty/raw/branch/master/live.txt#影视范$https://agit.ai/fantaiying/fmm/raw/branch/main/tv/m3u/global.m3u"},
    
    • 第二种写法,这种从配置文件里面读取会比较好些
    {"key":"Live2Vod","name":"电视直播(远程配置版)","type":3,"api":"csp_Live2Vod","searchable":1,"ext":"https://ghproxy.com/https://raw.githubusercontent.com/zhixc/CatVodTVSpider/main/json/live.json"},
    
    • 第二种写法对应的配置文件说明:
    [
      {
        "name": "txt直播名称1",
        "url": "http://abc.txt"
      },
      {
        "name": "txt直播名称2",
        "url": "http://def.txt&&&http://hij.png"  // 直播链接与自定义图片用 &&& 隔开 
      },
      {
        "name": "txt直播名称3",
        "url": "http://def.txt&&&http://hij.png",
        "circuit": 1   // 分组后各个组里面的直播按照名称分线路
      },
      {
        "name": "m3u直播名称1",
        "url": "https://lmn.m3u"
      },
      {
        "name": "m3u直播名称2",
        "url": "https://lmn.m3u&&&https://opq.jpg" // 同样的,带图片链接
      },
      {
        "name": "m3u直播名称3(分组)",
        "url": "https://rst.m3u&&&http://hij.png", // m3u分组的最好带上图片,不然没有图片
        "group": 1  // 要分组的话,group 值为 1,其他情况不分组
      }
    ]
  • m3u 格式的文件,里面一般带有图片,如果在json配置文件里面写了图片链接,那么就以json配置文件的为主。
  • 一些直播源来自:Yoursmile7 的 TVBox、youshandefeiyang 的 live-Url 、Ftindy 的 IPTV-URL、范明明的 live 等项目.

from  https://github.com/syzxasdc/CatVodTVSpider1

 

No comments:

Post a Comment