Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not get all user videos #8

Open
myxinhgai opened this issue Apr 15, 2020 · 3 comments
Open

Not get all user videos #8

myxinhgai opened this issue Apr 15, 2020 · 3 comments

Comments

@myxinhgai
Copy link

Hello thank you for your code, i have use your code and generated signature but when i download all videos of user that have 100 videos, i just get around 12-17 videos, could you please have me get the answer? Thank you so much

@fky1990
Copy link

fky1990 commented Apr 17, 2020

同样的问题,改count数也最多只能获取36条视频的

@zhangchj9
Copy link

zhangchj9 commented May 21, 2020

同样的问题,改count数也最多只能获取36条视频的
Hello thank you for your code, i have use your code and generated signature but when i download all videos of user that have 100 videos, i just get around 12-17 videos, could you please have me get the answer? Thank you so much

影响到请求内容的参数是max_cursor。把上一次请求获得的max_cursor(json.loads(r.text).get('max_cursor))设置为下一次请求的参数即可

url = "https://www.iesdouyin.com/web/api/v2/aweme/post/?user_id={}&sec_uid=&count=21&max_cursor={}&aid=1128&_signature={}".format(user_id, json.loads(r.text).get('max_cursor), sign)
requests.get(url,headers=headers,verify=False,proxies=proxies)

@zhangchj9
Copy link

And if you have got all the videos from one user, then json.loads(r.text).get('has_more') will be 'false'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants