forked from maowei1125/spider-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3b7e1f
commit 34aadd4
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
官方发布站:https://taoiptv.com | ||
|
||
本程序运行环境:python3 + mysql, 步骤如下: | ||
程序运行环境:python3 + mysql, 步骤如下: | ||
|
||
第1步:新建数据iptv,执行初始脚本data/iptv_data.sql | ||
修改python3 hotels.py、python3 multicast.py、python3 iptvdata.py中数据库配置 | ||
|
||
第2步:对于Ubuntu/Debian的Linux发行版系统,使用以下2行命令安装FFmpeg: | ||
sudo apt update | ||
sudo apt install ffmpeg | ||
(其他系统安装FFmpeg,自行百度) | ||
(其他系统安装FFmpeg,自行搜索教程) | ||
|
||
第3步:安装好python环境,安装python依赖模块,服务器SSH命令或宝塔终端->输入以下3行代码指令 | ||
第3步:安装好python环境,安装python依赖模块,服务器输入以下3行代码指令 | ||
pip3 install bs4 | ||
pip3 install m3u8 | ||
pip3 install requests | ||
(其他运行中报错缺少模块,可自行安装) | ||
|
||
第4步:修改组播抓取配置,执行主程序 | ||
修改multicast.py中113行api_token,执行python3 main.py,执行完成,生成source/iptv.txt直播源文件 |