Code Monkey home page Code Monkey logo

huiyou.js's Introduction

Hi there, I'm CLDXiang! 👋

Anurag's github stats

huiyou.js's People

Contributors

carolthepooh avatar cldxiang avatar maldovar1024 avatar ruitian12 avatar

Watchers

 avatar  avatar

huiyou.js's Issues

重复视频

爬取视频去重时只排除了已推送的视频,没有考虑已缓存的视频,会导致视频缓存中存在重复视频

弃用 Antd

Antd 对我们的插件来说体量过大了,事实上按我们的界面的复杂程度是没有必要使用 Antd 的

UI 设计

需要认真做一下 UI 设计,尽量贴近 B 站设计风格

构建上需要优化的点

  1. 添加 .prettierrc.js 统一格式化工具的行为

  2. 添加 .gitattribute 统一设置行尾为 LF,git 在 Windows 下会默认将行尾设为 CRLF,导致无法通过 ESLint 的校验

修改提前爬取待推送视频策略

现在是在用户观看了特定数目(推送阈值 - 1)时才预先爬取待推送视频,但是这在一些情况下仍会导致无法及时获取待推送视频(比如主动推送时)。

建议将策略改为弹匣式,用一个对象(类比为弹匣)存储待推送视频,只要弹匣空了(或者快要空了)就异步选取待推送视频(装弹),如此一来也可以更加游刃有余地进行筛选(比如可以通过 view 接口拉取更详细的视频信息)

如果弹匣大小大于 1,要限制装弹速度(调取接口的频率),仅在弹匣真的空了的时候才立刻调取接口(弹匣不空也不满的时候慢慢装弹就行,比如一分钟爬一个)

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.