GithubHelp home page GithubHelp logo

Comments (2)

akafanfan avatar akafanfan commented on June 11, 2024 2

我也遇到了这个问题,看了下代码 在 douyin.py 文件中 的 getUserInfo 方法中 url = self.urls.USER_POST + utils.getXbogus( f'sec_user_id={sec_uid}&max_cursor={max_cursor}&count={count}&device_platform=webapp&aid=6383') 第一次请求max_cursor 传的是 0 ,在 douyin 网页 F12 看 请求,会多次请求这个/aweme/v1/web/aweme/post/ 地址,第一次max_cursor 传的是 0 后面每次会基于上次的请求响应拿到 max_cursor 然后再次调用,但是程序运行的第二次 返回的结果就是空了,就导致获取的信息不完整。

找到问题了。需要在配置文件更新一下 Cookie 就好了

from douyin-downloader.

akafanfan avatar akafanfan commented on June 11, 2024

我也遇到了这个问题,看了下代码 在 douyin.py 文件中 的 getUserInfo 方法中
url = self.urls.USER_POST + utils.getXbogus( f'sec_user_id={sec_uid}&max_cursor={max_cursor}&count={count}&device_platform=webapp&aid=6383')
第一次请求max_cursor 传的是 0 ,在 douyin 网页 F12 看 请求,会多次请求这个/aweme/v1/web/aweme/post/ 地址,第一次max_cursor 传的是 0 后面每次会基于上次的请求响应拿到 max_cursor 然后再次调用,但是程序运行的第二次 返回的结果就是空了,就导致获取的信息不完整。

from douyin-downloader.

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.