Git Product home page Git Product logo

douyin's Introduction

抖音弹幕获取(2023/2/2)

  1. 抖音弹幕改为websocket接口获取,感觉更加方便了
  2. 致谢大佬 提供的极详细的proto文件,虽然我用不到这么多字段。同时提供了解决方案,我这边纯粹是翻译了一下大佬的python语言,转换成js的写法而已。没想到抖音居然对bytes进行了压缩。。。如果不是大佬的提示,真的是跪在这个坑里出不来了,都怀疑protobuf用出了问题了。
  3. js 的 request没法拿到完整的 网页body内容,尝试了很久都没用,不得不使用python 的方式来获取。待优化。
  4. 主要还是自行改造吧,代码很老旧,纯粹是从原来的项目中删减出来的,各位只需摘取核心代码自行处理即可。
  5. 摒弃了原先的docker部署,越简单越好,就 npm run tsc && node dist/app.js 就可以部署了。开发环境就npm run start。懂得都懂,很简单。 生产环境直接用pm2启动即可。
  6. 代码未长期运行,仅仅简单测试过,所以各种不合理处自行做异常处理。

redis 是需要自行配置!!!!!!!!!!!!!!!!

  1. utils/redisStore.ts 配置redis 然后应该就可以运行了

douyin's People

Contributors

johnsmithsren avatar

Watchers

 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.