Code Monkey home page Code Monkey logo

soonfy_video_crawler's Introduction

video-crawler

video site

  1. iqiyi
  2. qq
  3. letv
  4. sohu
  5. youku
  6. mgtv
  7. pptv
  8. acfun
  9. bilibili

ready

在当前目录下新建 config.json 文件, 示例如下.

{
  "db":{
    "uris": [dburl],
    "monitor": [dburl]
  }
}

process

site + uri --> vid, cid --> vids/uris --> plays

scripts

daily crawlers

tsc
node main/scripts/daily_crawl.js

check plays

1. 当前目录下新建 logs 文件夹
2. 执行如下脚本
tsc
node main/scripts/check_play.js

export error films

1. 当前目录下新建 logs 文件夹
2. 执行如下脚本
tsc
node main/scripts/export_film.js

export error plays

1. 当前目录下新建 logs 文件夹
2. 执行如下脚本
tsc
node main/scripts/export_play.js

exporters

模板文件在 template 文件夹下

根据 剧目id 或者 类型 导出播放总量

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-增量需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_film\_sumplay.js 20170806-增量需求
3. 输出文件在 output 文件夹下。

根据 剧目id 或者 类型 导出分天播放量

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-增量需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_film\_dayplay.js 20170806-增量需求
3. 输出文件在 output 文件夹下。

根据 剧目id 或者 类型 导出剧目信息

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-增量需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_film\_info.js 20170806-增量需求
3. 输出文件在 output 文件夹下。

导出所有剧目信息

1. 执行脚本。例如 node main/exporters/export_allfilm\_info.js
2. 输出文件在 output 文件夹下。

根据 剧目id 或者 类型 导出剧目版权信息

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-增量需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_film\_site.js 20170806-增量需求
3. 输出文件在 output 文件夹下。

导出 最近添加 剧目信息

1. 执行脚本。例如 node main/exporters/export_film\_last.js 2017-12-12
2. 输出文件在 output 文件夹下。

以下停止使用

根据剧目 id 导出一段时间的总量和增量

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-增量需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_sum\_play.js 20170806-增量需求
3. 输出文件在 output 文件夹下。例如 文件“20170806-增量需求-sum-result.xlsx”

根据剧目 id 导出一段时间的每天总量

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-分天需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_daily\_play.js 20170806-分天需求
3. 输出文件在 output 文件夹下。例如 文件“20170806-分天需求-daily-result.xlsx”

根据剧目类型导出一段时间的总量和增量

1. 在 input 文件夹下输入需求文件xlsx。例如 文件“20170806-类型需求.xlsx”
2. 执行脚本。例如 node main/exporters/export_cate\_play.js 20170806-类型需求
3. 输出文件在 output 文件夹下。例如 文件“20170806-类型需求-category-result.xlsx”

remark

  1. import package
    在 korok 下 korok_factory.js 文件添加
if(name == "tag()") {
  return elem.name
}

soonfy_video_crawler's People

Contributors

soonfy avatar cjx-snow 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.