Giter VIP home page Giter VIP logo

Comments (10)

zhangn1985 avatar zhangn1985 commented on July 19, 2024

了解,这个问题本来在我电脑坏掉的时候就准备解了。这周末吧。

from ykdl.

mengmo avatar mengmo commented on July 19, 2024

@zhangn1985
一个疑问:
extractors目录下的cntv.py看着像个链接,但是实际使用时就是把cctv.py复制一下改个名,同样的还有letv
是就只能这样解决,还是这样做比较好呢?

from ykdl.

zhangn1985 avatar zhangn1985 commented on July 19, 2024

据我测试cntv的链接大部分都跳转到cctv,解析必然是一样的,如果只是简单的复制,那么势必要维护两份代码,而且要同步修改,难免会忘记。所以做成链接比较好,但是问题就是git clone的方式就不可移植。
要么就写成一个wrapper。

from ykdl.

zhangn1985 avatar zhangn1985 commented on July 19, 2024

pip 安装就没有问题。

from ykdl.

mengmo avatar mengmo commented on July 19, 2024

@zhangn1985
我的描述有问题
你有没有看过pip安装后的目录结构?我这儿letv就是直接原样复制了一份,而修改后的cntv.py也得这样做才能用。

from ykdl.

zhangn1985 avatar zhangn1985 commented on July 19, 2024

是的,我看过,pip安装包生成的时候就是原样复制的。
这个你不需要管,由我生成安装包的时候做的。

from ykdl.

zhangn1985 avatar zhangn1985 commented on July 19, 2024

支持cntv不仅仅是把cntv链接到cctv,cctv本身也做了修改

from ykdl.

zhangn1985 avatar zhangn1985 commented on July 19, 2024

f6a92d2

这个做法更好~~

from ykdl.

mengmo avatar mengmo commented on July 19, 2024

其实我问这个问题的原因是
当某个网站的解析修改后就需要下载相应的解析器替换,而如果是cntv.pycctv.py或者letvle的话那就多了一步操作[相较于you-get(你看这人有多懒)]
ykdl里这么做是不是出于利于开发的角度才这么做的呢?(如果是的话就没问题了)

from ykdl.

zhangn1985 avatar zhangn1985 commented on July 19, 2024

是的,有利于开发者,所以新的做法改变了。

from ykdl.

Related Issues (20)

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.