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

抖音获取直播流地址貌似不行了 #450

Open
Hiflyce opened this issue Sep 6, 2023 · 6 comments
Open

抖音获取直播流地址貌似不行了 #450

Hiflyce opened this issue Sep 6, 2023 · 6 comments

Comments

@Hiflyce
Copy link

Hiflyce commented Sep 6, 2023

text = urllib.parse.unquote(
re.findall('<script id="RENDER_DATA" type="application/json">(.*?)</script>', response.text)[0])
这块代码看起来获取不到了

@shixiuhai
Copy link

shixiuhai commented Sep 9, 2023

参考了上面这位大佬的我写了一版本python的https://github.com/shixiuhai/sxhCrawlerFree/blob/main/%E7%9B%B4%E6%92%AD/%E6%8A%96%E9%9F%B3/douyin_new.py

@itsdrdick
Copy link

itsdrdick commented Sep 26, 2023

参考了上面这位大佬的我写了一版本python的https://github.com/shixiuhai/sxhCrawlerFree/blob/main/%E7%9B%B4%E6%92%AD/%E6%8A%96%E9%9F%B3/douyin_new.py

加了sleep(3)然后多个页面同时请求,抖音貌似把我ip给ban了。。。还有什么办法解决吗?

@shixiuhai
Copy link

https://haiwaidaili.net/ 我一直使用的代理平台,在所有的requests上添加proxies代理

@leocassitias
Copy link

为啥我一打开就崩溃了,是因为Install有更改吗

@shixiuhai
Copy link

得具体错误具体分析,上面代码应该pip3 isntall requests就行,然后我这边使用版本都是python3.8以上

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

5 participants