-
Notifications
You must be signed in to change notification settings - Fork 53
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
02d1ca8
commit a68690f
Showing
11 changed files
with
6,912 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### 这些是什么? | ||
该文件夹存储了由 `generate.py` 爬取生成的匹配[ EPG 频道列表](http://epg.51zmt.top:8000/) 的 `m3u8` 文件,您可以直接取用,命名方式参考 [主 README ](../README.md) 。 | ||
导入该款 `m3u8` 后,您可以通过将电子节目单(EPG)地址设为 `http://epg.51zmt.top:8000/e.xml` 来获取自助匹配电子节目单的体验,具体方法可以谷歌。 | ||
|
||
感谢该站站长提供的优质节目单。 | ||
|
||
---- | ||
|
||
- 总合并直播源: | ||
- 带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/merged.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/merged.txt) | ||
- 不带来源: [`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/merged-simple.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/merged-simple.txt) | ||
- 分类 | ||
- `cctv` | ||
- 带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/cctv.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/cctv.txt) | ||
- 不带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/cctv-simple.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/cctv-simple.txt) | ||
- `difang` | ||
- 带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/weishi.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/weishi.txt) | ||
- 不带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/weishi-simple.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/weishi-simple.txt) | ||
- `difang` | ||
- 带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/difang.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/difang.txt) | ||
- 不带来源:[`https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/difang-simple.txt`](https://cdn.jsdelivr.net/gh/abc1763613206/myiptv@latest/epg/difang-simple.txt) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import os | ||
import requests | ||
import gzip | ||
import io | ||
import time | ||
from bs4 import BeautifulSoup | ||
|
||
url = 'http://epg.51zmt.top:8000/upload/' | ||
|
||
def get_epg(a, b): | ||
f = os.path.join(a, b) | ||
files = {'myfile': open(f,'rb')} | ||
print('Converting {}'.format(f)) | ||
r = requests.post(url,files=files) | ||
print(r.text) | ||
soup = BeautifulSoup(r.text, 'html.parser') | ||
links = soup.find_all('a') | ||
for item in links: | ||
m3u8url = item.get('href') | ||
print(m3u8url) | ||
r1 = requests.get(m3u8url) | ||
name = str(b)[:-4] + '.m3u' | ||
with open(name, 'wb') as f1: | ||
f1.write(r1.content) | ||
return | ||
|
||
|
||
|
||
|
||
if __name__ == '__main__': | ||
for root, dirs, files in os.walk("..", topdown=False): | ||
for name in files: | ||
if '.txt' in name: | ||
# print(os.path.join(root, name)) | ||
get_epg(root, name) | ||
|
Oops, something went wrong.