Git Product home page Git Product logo

tv's Introduction

自动获取酒店源 组播源

使用方法:

1.电视盒子

在看电视直播软件中直接输入以下任一地址即可:

  https://ghproxy.net/https://raw.githubusercontent.com/ssili126/tv/main/itvlist.txt
  https://raw.githubusercontent.com/ssili126/tv/main/itvlist.txt

2.想自己获取电视直播地址的可采用以下方法:

windows电脑:

  1.1 电脑安装最新的chrome,同时执行文件目录下要有对应版本的chromedriver.exe,
  1.2 下载windows目录下的itv.exe及itvtest.exe,
  1.3 首先运行itv.exe,完成后再运行itvtest.exe,
  1.4 运行完成后在当前目录下生成电视直播文件itvlist.txt。

有安装python的电脑:

  2.1 电脑安装chrome,下载对应版本的chromedriver
  2.2 下载itv.py cctv.py weishi.py qita.py
  2.3 pip install selenium requests futures eventlet opencv-python
  2.4 依次运行itv.py cctv.py weishi.py qita.py
  2.5 运行完成后在当前目录下生成电视直播文件itvlist.txt。

3.在openwrt或群辉的docker运行:

    1.安装:docker pull liuxipo/itvall:latest
    2.运行:docker run -v /www/itvall:/app itvall
    3.访问:http://本地ip/itvall/itvlist.txt

4.推荐在本地电脑运行,不推荐在github运行。github获得的数据不准确,测速不准。

5.udpxy目录为部分组播源。

tv's People

Contributors

ssili126 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tv's Issues

怎么分组?

首先感谢,绝大部分IPTV是可用的。

然后,载入全部频道,树莓派+LibreELEC会有点卡顿。

怎么进行分组?合并?

关于组播的一点意见

大佬,收到你发的py文件了,看了下,虽然不太明白,但是有些地方看懂了。组播的搜索规则可以做如下修改么。urls={}里面改成省份,然后下面的city={url}改成 region={url}可以么,这样是否会自动包含每个省份的所有城市?我收到的是湖北的,里面城市名是12个,但湖北一定是多于12个城市的。

最好把节目名称弄的规范一些

                        name = name.replace("cctv", "CCTV")
                        name = name.replace("**", "CCTV")
                        name = name.replace("央视", "CCTV")
                        name = name.replace("高清", "")
                        name = name.replace("超高", "")
                        name = name.replace("HD", "")
                        name = name.replace("标清", "")
                        name = name.replace("频道", "")
                        name = name.replace("-", "")
                        name = name.replace(" ", "")
                        name = name.replace("PLUS", "+")
                        name = name.replace("+", "+")
                        name = name.replace("(", "")
                        name = name.replace(")", "")
                        name = re.sub(r"CCTV(\d+)台", r"CCTV\1", name)
                        name = name.replace("CCTV1综合", "CCTV1")
                        name = name.replace("CCTV2财经", "CCTV2")
                        name = name.replace("CCTV3综艺", "CCTV3")
                        name = name.replace("CCTV4国际", "CCTV4")
                        name = name.replace("CCTV4中文国际", "CCTV4")
                        name = name.replace("CCTV4欧洲", "CCTV4")
                        name = name.replace("CCTV5体育", "CCTV5")
                        name = name.replace("CCTV6电影", "CCTV6")
                        name = name.replace("CCTV7军事", "CCTV7")
                        name = name.replace("CCTV7军农", "CCTV7")
                        name = name.replace("CCTV7农业", "CCTV7")
                        name = name.replace("CCTV7国防军事", "CCTV7")
                        name = name.replace("CCTV8电视剧", "CCTV8")
                        name = name.replace("CCTV9记录", "CCTV9")
                        name = name.replace("CCTV8纪录", "CCTV9")
                        name = name.replace("CCTV9纪录", "CCTV9")
                        name = name.replace("CCTV10科教", "CCTV10")
                        name = name.replace("CCTV11戏曲", "CCTV11")
                        name = name.replace("CCTV12社会与法", "CCTV12")
                        name = name.replace("CCTV13新闻", "CCTV13")
                        name = name.replace("CCTV新闻", "CCTV13")
                        name = name.replace("CCTV14少儿", "CCTV14")
                        name = name.replace("CCTV少儿", "CCTV14")
                        name = name.replace("CCTV少儿超", "CCTV14")
                        name = name.replace("CCTV15音乐", "CCTV15")
                        name = name.replace("CCTV音乐", "CCTV15")
                        name = name.replace("CCTV16奥林匹克", "CCTV16")
                        name = name.replace("CCTV17农业农村", "CCTV17")
                        name = name.replace("CCTV17农业", "CCTV17")
                        name = name.replace("CCTV5+体育赛视", "CCTV5+")
                        name = name.replace("CCTV5+体育赛事", "CCTV5+")
                        name = name.replace("CCTV5+体育", "CCTV5+")
                        name = name.replace("CCTV教育", "CETV1")
                        name = name.replace("风云足球", "CCTV风云足球")
                        name = name.replace("上海卫视", "东方卫视")
                        name = name.replace("内蒙卫视", "内蒙古卫视")
                        name = name.replace("旅游卫视", "海南卫视")
                        name = name.replace("天津卫视台", "天津卫视")
                        name = name.replace("天津体育台", "天津体育")
                        name = name.replace("天津公共台", "天津购物")
                        name = name.replace("天津影视台", "天津影视")
                        name = name.replace("天津文艺台", "天津文艺")
                        name = name.replace("天津新闻台", "天津新闻")
                        name = name.replace("天津科教台", "天津教育")
                        name = name.replace("天津都市台", "天津都市")
                        name = name.replace("CHC电影", "CHC高清电影")
                        name = name.replace("江西少儿频", "江西少儿")
                        name = name.replace("江西影视旅", "江西影视")
                        name = name.replace("江西教育标", "江西教育")
                        name = name.replace("教育电视台1", "CETV1")
                        name = name.replace("CNB亚太财经", "CNBC亚洲频道")
                        name = name.replace("东奥纪实", "BTV纪实科教")
                        name = name.replace("法治天地", "法治天下")
                        name = name.replace("淘电影", "BTV淘电影")
                        name = name.replace("4K电源", "BTV4K超清")

请教抓取规则

请教一下,挨个去试接口“/iptv/live/1000.json”这条规则是如何获取(知晓)的?

m3u 完整格式问题 在某些软件在线订阅频道获取失败

测试了 tivimate 和 我的电视-O TV端,本地文件的方式可以导入频道,但是在线订阅都是获取频道失败。我看其他源的m3u都有带 epg源,对比一下标签参数 m3u文件好像缺少 x-tvg-url= tvg-name= tvg-logo=

我们的m3u
#EXTM3U
#EXTINF:-1 group-title="央视频道",CCTV1
http://221.234.25.122:9999/tsfile/live/0001_1.m3u8?key=txiptv&playlive=1&authid=0
#EXTINF:-1 group-title="央视频道",CCTV1
http://58.53.152.170:9901/tsfile/live/0001_1.m3u8?key=txiptv&playlive=1&authid=0

别人的m3u
#EXTM3U x-tvg-url="https://live.fanmingming.com/e.xml"
#EXTINF:-1 tvg-name="CCTV1" tvg-logo="https://live.fanmingming.com/tv/CCTV1.png" group-title="央视频道",CCTV-1 综合
http://[2409:8087:4c0a:22:1::11]:6410/170000001115/UmaiCHAN111128BESTVSMGSMG/index.m3u8?AuthInfo=9kOOdBn7MFF%2F2bWjKgahUU6FFmRK8Hl0ytyd5e5kWGEwoDIwMxbrlyyVy9x6ZDKnldIYKOjBOUjRyoym5n7Kg0yIYstFTUfqtC14fzxhy5Y
#EXTINF:-1 tvg-name="CCTV2" tvg-logo="https://live.fanmingming.com/tv/CCTV2.png" group-title="央视频道",CCTV-2 财经
http://[2409:8087:4c0a:22:1::11]:6410/170000001115/UmaiCHAN5000036BESTVSMGSMG/index.m3u8?AuthInfo=9kOOdBn7MFF%2F2bWjKgahUSpr1AVNI633ampcuzdN%2BfGVSARKsxkWGZw7vFUuOj2QZHeRzosIxVbl7i2QHFATHA3k5wDWG1qHkZQAleNv%2FbI
#EXTINF:-1 tvg-name="CCTV3" tvg-logo="https://live.fanmingming.com/tv/CCTV3.png" group-title="央视频道",CCTV-3 综艺
http://[2409:8087:4c0a:22:1::11]:6410/170000001115/UmaiCHAN638727c125355/index.m3u8?AuthInfo=9kOOdBn7MFF%

常规m3u格式
#EXTM3U x-tvg-url=""
#EXTINF:-1 tvg-name="标准标题" tvg-logo="图标" group-title="组名",标题
视频地址

希望可以优化一下格式。

能否增加源搜索

你好,大佬你的项目很好了,但是其实我主要想抓一些凤凰的源,我在酷安网看到一个网友写了一个小软件,他抓源应该是这个网站
www.foodieguide.com

这是他公开的维护源
https://mirror.ghproxy.com/raw.githubusercontent.com/XiaoZhang5656/xiaozhang-5656.github.io/main/iptv-live.txt

这是他写的安卓端的软件
https://www.coolapk.com/feed/52560285?shareKey=ZDdkNmZjMTZkYTI5NjVkZTc3OWM~&shareUid=1620349&shareFrom=com.coolapk.market_14.0.2

好像抓的源很多也不能播放,如果大佬也可以抓多一些源然后自动检测有效性,那是最好了

第二条命令跑不起来

docker run -v /www/itvall:/app itvall
Unable to find image 'itvall:latest' locally
docker: Error response from daemon: pull access denied for itvall, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

docker版本每次都要手动吗

安装了docker版本的,运行完容器自己就停止了,还有容器能加个定时运行和端口映射吗,装在乌班图上了,没法直接远程访问

2月18号使用itvtest.exe提示报错

C:Users 1\Downloads Programs itvtest.exe
raceback lmost recent call last]File“download speed.py”, line 24,in falueError: too many values to upack (expected 2)
2336] Failed to execute script download speed
due to unhandled exception!
请问这是什么问题,第一次使用可以,第二次就不行了

运行sudo docker run liuxipo/itvall 出现下面的报错

http://121.19.134.142:808/iptv/live/1000.json?key=txiptv
http://121.19.134.140:808/iptv/live/1000.json?key=txiptv
http://123.183.24.94:6666/iptv/live/1000.json?key=txiptv
http://115.171.86.251:9901/iptv/live/1000.json?key=txiptv
http://103.48.232.12:9901/iptv/live/1000.json?key=txiptv
http://103.48.232.250:9901/iptv/live/1000.json?key=txiptv
http://106.52.31.219:9901/iptv/live/1000.json?key=txiptv
http://49.234.31.101:7004/iptv/live/1000.json?key=txiptv
http://103.48.233.142:9901/iptv/live/1000.json?key=txiptv
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
File "/usr/local/lib/python3.12/site-packages/eventlet/greenio/base.py", line 251, in connect
socket_checkerr(fd)
File "/usr/local/lib/python3.12/site-packages/eventlet/greenio/base.py", line 50, in socket_checkerr
raise OSError(err, errno.errorcode[err])
ConnectionRefusedError: [Errno 111] ECONNREFUSED

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/local/lib/python3.12/http/client.py", line 1326, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.12/http/client.py", line 1085, in _send_output
self.send(msg)
File "/usr/local/lib/python3.12/http/client.py", line 1029, in send
self.connect()
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 238, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f126adb9310>: Failed to establish a new connection: [Errno 111] ECONNREFUSED

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/itvall.py", line 92, in
page_content = driver.page_source
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 448, in page_source
return self.execute(Command.GET_PAGE_SOURCE)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 345, in execute
response = self.command_executor.execute(driver_command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/remote_connection.py", line 302, in execute
return self._request(command_info[0], url, body=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/remote_connection.py", line 322, in _request
response = self._conn.request(method, url, body=body, headers=headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/_request_methods.py", line 136, in request
return self.request_encode_url(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/_request_methods.py", line 183, in request_encode_url
return self.urlopen(method, url, **extra_kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/poolmanager.py", line 444, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 877, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 877, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 877, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36967): Max retries exceeded with url: /session/e3fd3ad851b090d68a1baa91197f7cec/source (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f126adb9310>: Failed to establish a new connection: [Errno 111] ECONNREFUSED'))

/ZHGXTV/

大神,能写一个关于/ZHGXTV/Public/json/live_interface.txt 的IPTV吗?

sudo docker run liuxipo/itvall

sudo docker run liuxipo/itvall 可以运行起来,但运行完成后无法查看结果
http://本地ip/itvall/itvlist.txt 访问显示拒绝访问

我的环境是:
centos 里配置的docker ,以root 身份运行
docker run -v /www/itvall:/app itvall 运行时提示:python: can't open file '/app/itvall.py': [Errno 2] No such file or directory
sudo docker run -v /volume1/docker/itvall:/app liuxipo/itvall 运行时依然提示:python: can't open file '/app/itvall.py': [Errno 2] No such file or directory
sudo docker run liuxipo/itvall 运行可以成功,但无法提取数据,想知道怎么把运行结果取出来,
另外,运行命令没有进行端口映射,是不是这个原因拒绝访问

有些网络问题:速度太慢,播放不流畅,可否优化

**首先感谢提供这么好的项目

我这边是江西电信,在本地的ubuntu上面用 itv_all.py 扫描过很多次,扫出来的源都是高清的,但大部分播放速度只有200K左右,这1080,8M的源,只有200K/s的速度,很卡顿,估计是酒店IP小水管比较慢,毕竟是白嫖。可否再设置个标清的源,200K的速度放标清的源应该是OK了,直播源的优先级:流畅应该在清晰度之上**

大佬 搜索直播源出问题了

File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 290, in create_urllib3_context
context.minimum_version = TLSVersion.TLSv1_2
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 546, in minimum_version
super(SSLContext, SSLContext).minimum_version.set(self, value)
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 546, in minimum_version
super(SSLContext, SSLContext).minimum_version.set(self, value)
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 546, in minimum_version
super(SSLContext, SSLContext).minimum_version.set(self, value)
[Previous line repeated 486 more times]
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 544, in minimum_version
if value == TLSVersion.SSLv3:
^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded
Error: Process completed with exit code 1.
0s
0s

用itvtest.exe时报错

用itvtest.exe时报错,提示
Traceback (most recent call last):
file "download_speed.py", line 24, in
ValueError: too many values to unpack (expected 2)
[38212] Failed to execute script 'download_speed' due to unhandled exception!
请问这个要怎么处理?谢谢

win11 x64运行出错

chrome 121.0.6167.85 绿色版本,解压运行。非安装版本。
运行itv.exe出错。
屏幕截图 2024-01-31 175059

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.