Coder Social home page Coder Social logo

mxdabc / epg Goto Github PK

View Code? Open in Web Editor NEW
94.0 1.0 19.0 2.11 MB

抓取多来源电视节目单(EPG),生成TVXML文件,并提供对外访问接口及后台配置。修改自老张的EPG源码

Home Page: https://epg.crestekk.cn

License: BSD 3-Clause "New" or "Revised" License

Python 72.71% HTML 1.20% JavaScript 13.89% CSS 11.65% Shell 0.55%
epg epgdata iptv iptv-channels iptv-m3u iptv-playlist

epg's Introduction

epg

mxd's EPG

  • 基于Python3Django4的节目表数据抓取及发布系统
  • 网站地址:mxd's EPG
  • 您也可以新建Issues!

✨部署戳这里→部署教程、常见问题

预览图&实际效果图👇

Crawl

RunImage

主要功能

  • 从网上抓取各来源的节目表信息并生成XMLTV格式文件,导入Perfect Player等APP直接载入节目表信息。
  • 后台配置频道获取列表及抓取日志。
  • 抓取失败时自动更换来源。
  • 各数来源提供节目表的频道获取。
  • 提供向外发布的接口。
  • 使用nginx+uwsgi+MYSQL,普通电脑经长期测试,一天DIYP接口访问量可千万以上!

节目表来源

  • 电视猫
  • 搜视
  • 央视
  • 中数
  • **宽频
  • 中华电信
  • 香港有线宽频caletv
  • **四季电视
  • 香港有线宽频i-cable
  • 香港NOWTV
  • 香港无线电视
  • 北京卫视
  • 广东卫视
  • 香港卫视
  • viutv
  • 川流TV
  • myTVSUPER

需求

  • requests
  • django
  • BeautifulSoup

Star History

Star History Chart

epg's People

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

Watchers

 avatar

epg's Issues

后台登录密码问题

我已经成功运行了,但是后台用admin/admin无法登录,请问是我哪里没有配置正确吗?

报错 TypeError: force_insert must be a bool or tuple.

请问一下运行时报错这个需要怎样解决呢 没找到相关的
root@armbian:/www/wwwroot/DIYP/epg# python3 main.py
Traceback (most recent call last):
File "/www/wwwroot/DIYP/epg/main.py", line 20, in
start_crawl()
File "/www/wwwroot/DIYP/epg/crawl/crawl.py", line 47, in main
log('%s\t第%s天 共有:%s 个频道节目表需要获取' % (dt.strftime('%Y-%m-%d'), d + 1, channel_no))
File "/www/wwwroot/DIYP/epg/utils/aboutdb.py", line 14, in log
dbinfo.save()
File "/www/wwwroot/DIYP/epg/web/models.py", line 241, in save
super().save(self, *args, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/django/db/models/base.py", line 822, in save
self.save_base(
File "/usr/local/lib/python3.11/dist-packages/django/db/models/base.py", line 905, in save_base
force_insert = self._validate_force_insert(force_insert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/django/db/models/base.py", line 850, in _validate_force_insert
raise TypeError("force_insert must be a bool or tuple.")
TypeError: force_insert must be a bool or tuple.

tvsou SSL错误

更换 tvsou 来源后,获取信息失败,spider-tvsou-连接失败,HTTPSConnectionPool(host='www.tvsou.com', port=443): Max retries exceeded with url: /epg/NNTV-e211ffe8/w4 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')))
请问大佬这个怎么解决?

运行服务器报错,不知道什么原因?

root@eq12:/home/james/epg# python3 manage.py runserver 0.0.0.0:80
Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.12/dist-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.12/dist-packages/django/core/management/commands/runserver.py", line 133, in inner_run
    self.check(display_num_errors=True)
  File "/usr/local/lib/python3.12/dist-packages/django/core/management/base.py", line 485, in check
    all_issues = checks.run_checks(
                 ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/core/checks/urls.py", line 14, in check_url_config
    return check_resolver(resolver)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/core/checks/urls.py", line 24, in check_resolver
    return check_method()
           ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/urls/resolvers.py", line 494, in check
    for pattern in self.url_patterns:
                   ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/utils/functional.py", line 57, in get
    res = instance.dict[self.name] = self.func(instance)
                                         ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/urls/resolvers.py", line 715, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/utils/functional.py", line 57, in get
    res = instance.dict[self.name] = self.func(instance)
                                         ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/urls/resolvers.py", line 708, in urlconf_module
    return import_module(self.urlconf_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 1387, in _gcd_import
  File "", line 1360, in _find_and_load
  File "", line 1331, in _find_and_load_unlocked
  File "", line 935, in _load_unlocked
  File "", line 995, in exec_module
  File "", line 488, in _call_with_frames_removed
  File "/home/james/epg/epg/urls.py", line 24, in
    path('api/', include('web.urls')),
                 ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/django/urls/conf.py", line 38, in include
    urlconf_module = import_module(urlconf_module)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 1387, in _gcd_import
  File "", line 1360, in _find_and_load
  File "", line 1331, in _find_and_load_unlocked
  File "", line 935, in _load_unlocked
  File "", line 995, in exec_module
  File "", line 488, in _call_with_frames_removed
  File "/home/james/epg/web/urls.py", line 9, in
    path('status/',views.statusepg),
                   ^^^^^^^^^^^^^^^
AttributeError: module 'web.views' has no attribute 'statusepg'

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.