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

原先通过tac获取sign的逻辑似乎失效了? #12

Closed
zhangchj9 opened this issue Jun 24, 2020 · 11 comments
Closed

原先通过tac获取sign的逻辑似乎失效了? #12

zhangchj9 opened this issue Jun 24, 2020 · 11 comments

Comments

@zhangchj9
Copy link

response = requests.get('https://www.iesdouyin.com/share/user/58958068057', headers=headers, verify=False)
tac = re.search(r"tac='([\s\S]*?)'</script>", response.text)
此时的tac为None,不知是不是网页的加载方式有所改变?

@khangpropk123
Copy link

I get the same too :((

@coder-fly
Copy link
Owner

网页版好像不返回数据了,我用手机正常访问也没数据。

@khangpropk123
Copy link

网页版好像不返回数据了,我用手机正常访问也没数据。

I think it change method to genarate _signature.
Lastnight it was working but now it did'nt :(

@guinner
Copy link

guinner commented Jun 27, 2020

response = requests.get('https://www.iesdouyin.com/share/user/58958068057', headers=headers, verify=False)
tac = re.search(r"tac='([\s\S]*?)'</script>", response.text)
此时的tac为None,不知是不是网页的加载方式有所改变?

现在签名应该不需要tac和userid了,签名方法也没变,但并不是每次请求都有数据

@zhangchj9
Copy link
Author

response = requests.get('https://www.iesdouyin.com/share/user/58958068057', headers=headers, verify=False)
tac = re.search(r"tac='([\s\S]*?)'</script>", response.text)
此时的tac为None,不知是不是网页的加载方式有所改变?

现在签名应该不需要tac和userid了,签名方法也没变,但并不是每次请求都有数据

奇怪的是,手机浏览器直接访问 主题 或者 用户列表 的分享链接都经常加载不出数据

@guinner
Copy link

guinner commented Jun 28, 2020

response = requests.get('https://www.iesdouyin.com/share/user/58958068057', headers=headers, verify=False)
tac = re.search(r"tac='([\s\S]*?)'</script>", response.text)
此时的tac为None,不知是不是网页的加载方式有所改变?

现在签名应该不需要tac和userid了,签名方法也没变,但并不是每次请求都有数据

奇怪的是,手机浏览器直接访问 主题 或者 用户列表 的分享链接都经常加载不出数据

感觉他们是直接限制了这个接口,连自家的请求也没放过。。。

@zhenzhang20
Copy link

目前有替代方案吗?

@RIP-GitHub
Copy link

已经解决抖音的web抓取了,联系416828817

@zhangchj9
Copy link
Author

已经解决抖音的web抓取了,联系416828817

单个视频抓取不需要sign和dytk,按主题或者音乐抓才是问题。

@RIP-GitHub
Copy link

已经解决抖音的web抓取了,联系416828817

单个视频抓取不需要sign和dytk,按主题或者音乐抓才是问题。

抓单个视频当然不需要,我解决的是抓某个抖音用户的所有作品

@coder-fly
Copy link
Owner

现在网页版又可以使用了,本项目代码也进行了更新,欢迎star

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

6 participants