Giter Site home page Giter Site logo

cctv30mins's Introduction

CCTV30mins

通过网络爬虫爬取**新闻30分视频 将cctv30mins.py文件拷贝到运行目录 传入参数说明

-s 从YYYYMM 开始下载起始月份的视频

-e 截止到YYYYMM 结束月份的视频

python3.7 -s 201901 -e 201901 (可用python3 以上的版本)

数据源 http://tv.cctv.com/lm/xw30f/

爬取其央视的其他节目 可修改 数据源 及视频真实下载地址(只需修改代码1200),其他节目的节目代码可通过Fiddler查看

'http://cntv.hls.cdn.apdcdn.com/asp/hls/1200/0303000a/3/default/'+videoCenterId+r'/' + str(i) + r'.ts'

监控网络请求的工具Fiddler,Chrome 浏览器

脚本只是为了熟悉Python语言,请勿将爬取视频作为商业盈利

Python 版本 -v 3.7

运行报module 请自行下载依赖库 pip3.7 install modulename

因为没加入线程,我的电脑配置比较低,下载可能停顿,那是CPU 100% 不是卡死

可自行加相关的机制避免,也可加入线程 降低CPU的使用率

cctv30mins's People

Contributors

newxf2015 avatar

Watchers

James Cloos avatar

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.