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

TK下载报错 #41

Closed
shichuanenhui opened this issue Feb 21, 2024 · 27 comments
Closed

TK下载报错 #41

shichuanenhui opened this issue Feb 21, 2024 · 27 comments

Comments

@shichuanenhui
Copy link

微信截图_20240221104512
微信截图_20240221104645

@Johnserf-Seed
Copy link
Owner

你需要确保代理可以正常访问tiktok,请使用tiktok允许地区的代理。

@Johnserf-Seed
Copy link
Owner

代理肯定是没问题的,刷tiktok都可以

你可以尝试访问这个链接,如果打得开就没有问题

@Johnserf-Seed
Copy link
Owner

连接端点失败那个链接是有问题的 https://mssdk-sg.tiktok.com/web/common?msToken=1Ab-7YxR9lUHSem0PraI_XzdKmpHb6JCYLfX_67rVQFE4UwwHVHmyG_NfIipqrlLT3kCXps-5PYlNAqtdwEg7TrDyTAfCKyBrOLmhMUjB55oW8SPZ4_EkNxNFUdV7MquA==

微信截图_20240221133352

切换了美、日、新加坡、加拿大、英国、巴西、德国
都是报错404
是不是这个检查端点的连接有问题,自带的文件conf.yaml里面tiktok的msToken下的内容

需要post请求,你需要用api测试工具

@Johnserf-Seed
Copy link
Owner

IMG_20240221_134310.jpg

我测试了,是正常的

@Johnserf-Seed
Copy link
Owner

我用postman测试也能访问,用命令行f2就不好使
f2 tk -M one -u https://www.tiktok.com/@vietwhhore/video/7220605899159784747 -c conf/app.yaml
你试试能下载下来吗

好的,我现在不在电脑前,晚点测试一下,我打包发布之前测试了都是ok的。

@Johnserf-Seed
Copy link
Owner

image
测试过了是正常的,还是和网络环境有关系。不过handler模块中有个bug修复了

Johnserf-Seed added a commit that referenced this issue Feb 21, 2024
@Johnserf-Seed
Copy link
Owner

能把你的配置发我一份吗?是不是我配置的有问题呀,我切了n个节点,在家在公司都不行,网络指定是没问题,我猜肯定是哪配置出问题了

使用--init-config初始化配置文件,然后把代理配置到conf.yaml再尝试看看。

@shichuanenhui
Copy link
Author

放弃了,放弃了,搞不定了😶‍🌫️

@shichuanenhui
Copy link
Author

期待后续出视频教程我在搞吧

@Johnserf-Seed
Copy link
Owner

放弃了,放弃了,搞不定了😶‍🌫️

我测试的时候只有1次出现了这个连接失败,所以还是代理网络的问题,你可以换一家代理

@shichuanenhui shichuanenhui closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
@Johnserf-Seed
Copy link
Owner

image
那这就很奇怪了,因为我捕获的是httpx.RequestError,只有当网络存在问题才会抛出这个异常。我这边测试了一下午就出现1次,平时基本上也很少会出现连接失败的报错。

@Johnserf-Seed
Copy link
Owner

image
为了获取更详细的报错,你可以修改f2\apps\tiktok\utils.py的87-93行的代码,如上图所示。重新运行后查看详细错误内容再反馈。

@shichuanenhui
Copy link
Author

python 3.11.4 详细原因:EOF occurred in violation of protocol (_ssl.c:1002).
python 3.11.1 详细原因:EOF occurred in violation of protocol (_ssl.c:992).
是不是python缺少环境呀,我python安装完直接 pip install f2 剩下什么都没安,我用这俩错误码搜好像都说证书或者SSL的问题

@Johnserf-Seed
Copy link
Owner

Johnserf-Seed commented Feb 21, 2024

我知道问题是什么了,你的https代理配置不要用https://http://。因为你本地的urllib3版本非最新的关系,不支持https的入口协议。

@Johnserf-Seed
Copy link
Owner

image
都改成http://应该可以解决你的问题

@shichuanenhui
Copy link
Author

还是有问题

Microsoft Windows [版本 10.0.22631.3155]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Lee>f2 tk -M one -u https://www.tiktok.com/@vietwhhore/video/7220605899159784747 -c conf/app.yaml
INFO App: tiktok
INFO 主配置路径: C:\Program Files\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径: C:\Users\Lee\conf\app.yaml

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Python311\Scripts\f2.exe_main
.py", line 7, in
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\cli.py", line 469, in tiktok
ctx.invoke(set_cli_config, **kwargs)
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 135, in set_cli_config
asyncio.run(run_app(kwargs))
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 143, in run_app
await app_module.main(kwargs)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 665, in main
await mode_function_mapmode
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 234, in handler_one_video
await self.get_or_add_video_data(aweme_data, vdb)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 137, in get_or_add_video_data
local_video_data = await db.get_video_info(aweme_data.get("aweme_id", None))
^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'get_video_info'

C:\Users\Lee>f2 tk -M one -u https://www.tiktok.com/@vietwhhore/video/7220605899159784747 -c conf/app.yaml
INFO App: tiktok
INFO 主配置路径: C:\Program Files\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径: C:\Users\Lee\conf\app.yaml

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Python311\Scripts\f2.exe_main
.py", line 7, in
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\cli.py", line 469, in tiktok
ctx.invoke(set_cli_config, **kwargs)
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 135, in set_cli_config
asyncio.run(run_app(kwargs))
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 143, in run_app
await app_module.main(kwargs)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 665, in main
await mode_function_mapmode
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 234, in handler_one_video
await self.get_or_add_video_data(aweme_data, vdb)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 137, in get_or_add_video_data
local_video_data = await db.get_video_info(aweme_data.get("aweme_id", None))
^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'get_video_info'

C:\Users\Lee>f2 tk -M post -i all -u https://www.tiktok.com/@vietwhhore -c conf/app.yaml
INFO App: tiktok
INFO 主配置路径: C:\Program Files\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径: C:\Users\Lee\conf\app.yaml
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/okn7fDbgTovaeegIEkHbIDcVFUCsCjAH
0IQXAH/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2266&bt=1133&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Njo2NGQ2NzU2ZTc3ZjYzPEBpMzU5eWc6ZnllajMzZzczNEA
vYTM2M2JgXjYxMmEwXjFfYSNfaGBlcjRnaG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588679&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=d57d993a5380fb246c647a877f3f4766&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/okn7fDbgTovaeegIEkHbIDcVFUCsCjA
H0IQXAH/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2266&bt=1133&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Njo2NGQ2NzU2ZTc3ZjYzPEBpMzU5eWc6ZnllajMzZzczNE
AvYTM2M2JgXjYxMmEwXjFfYSNfaGBlcjRnaG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588679&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=d57d993a5380fb246c647a877f3f4766&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ow3JISNFSnALpaBYbKeWDRkQAEfgqBYN
UVbS0D/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2594&bt=1297&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Nzc4OTQ0aTg4OWdlOTs2N0BpamRlZWU6Zm5kajMzZzczNEA
tMmMyYTJhNTUxMF4wMV8uYSMzczYucjRnMW5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=3335421afd79e0dad8d5b3613d102060&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ow3JISNFSnALpaBYbKeWDRkQAEfgqBY
NUVbS0D/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2594&bt=1297&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Nzc4OTQ0aTg4OWdlOTs2N0BpamRlZWU6Zm5kajMzZzczNE
AtMmMyYTJhNTUxMF4wMV8uYSMzczYucjRnMW5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=3335421afd79e0dad8d5b3613d102060&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/oYZR1kIYbABkQ0nlEvX0LeUg5eR3NNjB
aSDIDg/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&br=3000&bt=1500&bti=ODszNWYuMDE6&cs=0&ds=3&ft=4f
UEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NGk2NztkO2YzOjU1NzVlNUBpM3M4Zzs6ZnNnajMzZzczNEA1NTE0
YGI1XjMxMF4wXi8wYSNkaDRzcjRfMm5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588675&l=20240222015748CA387BDDD110B
E140324&ply_type=2&policy=2&signature=d305dacfffaa55a3c9dcd644b99365d3&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/oYZR1kIYbABkQ0nlEvX0LeUg5eR3NNj
BaSDIDg/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&br=3000&bt=1500&bti=ODszNWYuMDE6&cs=0&ds=3&ft=4
fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NGk2NztkO2YzOjU1NzVlNUBpM3M4Zzs6ZnNnajMzZzczNEA1NTE
0YGI1XjMxMF4wXi8wYSNkaDRzcjRfMm5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588675&l=20240222015748CA387BDDD110
BE140324&ply_type=2&policy=2&signature=d305dacfffaa55a3c9dcd644b99365d3&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ocNc0EqABQAhM8wkAOzOpyUCGIB8LwIK
lftCUa/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2046&bt=1023&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NTlkaDM5M2Q6ZWlkNzg6NUBpamhtOTM6Zm9lajMzZzczNEA
uYS8yMV8yNjExMDM2Yy4wYSNqbGdmcjQwcG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588678&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=505070e82d90b9cd36b027e2f6a5f268&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ocNc0EqABQAhM8wkAOzOpyUCGIB8LwI
KlftCUa/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2046&bt=1023&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NTlkaDM5M2Q6ZWlkNzg6NUBpamhtOTM6Zm9lajMzZzczNE
AuYS8yMV8yNjExMDM2Yy4wYSNqbGdmcjQwcG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588678&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=505070e82d90b9cd36b027e2f6a5f268&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
WARNING 内容长度为0,跳过下载
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/o8fUgiNIIIB0DokGbeNlEXDB0nTgbGAy
RQBF0S/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2062&bt=1031&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=ZDtkaDo3aTY4PDZkaDg2ZUBpM2xrNjw6ZnNnajMzZzczNEB
iYWBfXmAyXzYxXmAuYDQyYSMwc2BmcjRfL25gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=cef8c27bd0b6457046fbde22fd5fe8c5&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/o8fUgiNIIIB0DokGbeNlEXDB0nTgbGA
yRQBF0S/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2062&bt=1031&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=ZDtkaDo3aTY4PDZkaDg2ZUBpM2xrNjw6ZnNnajMzZzczNE
BiYWBfXmAyXzYxXmAuYDQyYSMwc2BmcjRfL25gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=cef8c27bd0b6457046fbde22fd5fe8c5&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
第 1 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=tiktok_we
b&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%2520%2528Wi
ndows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KHTML%252C%2520like%2520Gecko
%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabled=true&device_id=730606072183785216
7&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_fullscreen=false&is_page_visible=true&language
=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_referer=https%253A%252F%252Fwww.tiktok.com%252F&screen_heig
ht=1080&screen_width=1920&webcast_language=zh-Hans&tz_name=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo
2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&cover
Format=2&count=5&cursor=1681177507000&secUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZ
P&X-Bogus=DFSzswVuf%2F0ANxXhtosmwF9WX7j3
WARNING 第 1 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=
tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_versi
on=5.0%2520%2528Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KH
TML%252C%2520like%2520Gecko%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabl
ed=true&device_id=7306060721837852167&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_f
ullscreen=false&is_page_visible=true&language=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_refer
er=https%253A%252F%252Fwww.tiktok.com%252F&screen_height=1080&screen_width=1920&webcast_language=zh-Hans&tz_nam
e=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-
TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&coverFormat=2&count=5&cursor=1681177507000&s
ecUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZP&X-Bogus=DFSzswVuf%2F0ANxXhto
smwF9WX7j3
第 2 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=tiktok_we
b&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%2520%2528Wi
ndows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KHTML%252C%2520like%2520Gecko
%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabled=true&device_id=730606072183785216
7&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_fullscreen=false&is_page_visible=true&language
=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_referer=https%253A%252F%252Fwww.tiktok.com%252F&screen_heig
ht=1080&screen_width=1920&webcast_language=zh-Hans&tz_name=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo
2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&cover
Format=2&count=5&cursor=1681177507000&secUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZ
P&X-Bogus=DFSzswVuf%2F0ANxXhtosmwF9WX7j3
WARNING 第 2 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=
tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_versi
on=5.0%2520%2528Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KH
TML%252C%2520like%2520Gecko%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabl
ed=true&device_id=7306060721837852167&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_f
ullscreen=false&is_page_visible=true&language=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_refer
er=https%253A%252F%252Fwww.tiktok.com%252F&screen_height=1080&screen_width=1920&webcast_language=zh-Hans&tz_nam
e=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-
TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&coverFormat=2&count=5&cursor=1681177507000&s
ecUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZP&X-Bogus=DFSzswVuf%2F0ANxXhto
smwF9WX7j3
💛 [ 丢失 ]:2023-04-11 09-45-07_...this_song_video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💛 [ 丢失 ]:2023-04-11 09-58-52
...is_time____video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 09-45-07_...this_song_video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 09-58-52
...is_time____video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 08-00-57_...e_good_____video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 11-24-24_..._awwww_man_video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 11-18-00__video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA

C:\Users\Lee>

@shichuanenhui
Copy link
Author

日志.txt

@shichuanenhui
Copy link
Author

点赞主页能取到视频,但是全下载失败,单个视频有问题,也无所谓了

@Johnserf-Seed
Copy link
Owner

还是有问题

Microsoft Windows [版本 10.0.22631.3155]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Lee>f2 tk -M one -u https://www.tiktok.com/@vietwhhore/video/7220605899159784747 -c conf/app.yaml
INFO App: tiktok
INFO 主配置路径: C:\Program Files\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径: C:\Users\Lee\conf\app.yaml

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Python311\Scripts\f2.exe_main
.py", line 7, in
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\cli.py", line 469, in tiktok
ctx.invoke(set_cli_config, **kwargs)
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 135, in set_cli_config
asyncio.run(run_app(kwargs))
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 143, in run_app
await app_module.main(kwargs)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 665, in main
await mode_function_mapmode
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 234, in handler_one_video
await self.get_or_add_video_data(aweme_data, vdb)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 137, in get_or_add_video_data
local_video_data = await db.get_video_info(aweme_data.get("aweme_id", None))
^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'get_video_info'

C:\Users\Lee>f2 tk -M one -u https://www.tiktok.com/@vietwhhore/video/7220605899159784747 -c conf/app.yaml
INFO App: tiktok
INFO 主配置路径: C:\Program Files\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径: C:\Users\Lee\conf\app.yaml

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Python311\Scripts\f2.exe_main
.py", line 7, in
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\cli.py", line 469, in tiktok
ctx.invoke(set_cli_config, **kwargs)
File "C:\Program Files\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 135, in set_cli_config
asyncio.run(run_app(kwargs))
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\f2\cli\cli_commands.py", line 143, in run_app
await app_module.main(kwargs)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 665, in main
await mode_function_mapmode
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 234, in handler_one_video
await self.get_or_add_video_data(aweme_data, vdb)
File "C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok\handler.py", line 137, in get_or_add_video_data
local_video_data = await db.get_video_info(aweme_data.get("aweme_id", None))
^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'get_video_info'

C:\Users\Lee>f2 tk -M post -i all -u https://www.tiktok.com/@vietwhhore -c conf/app.yaml
INFO App: tiktok
INFO 主配置路径: C:\Program Files\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径: C:\Users\Lee\conf\app.yaml
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/okn7fDbgTovaeegIEkHbIDcVFUCsCjAH
0IQXAH/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2266&bt=1133&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Njo2NGQ2NzU2ZTc3ZjYzPEBpMzU5eWc6ZnllajMzZzczNEA
vYTM2M2JgXjYxMmEwXjFfYSNfaGBlcjRnaG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588679&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=d57d993a5380fb246c647a877f3f4766&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/okn7fDbgTovaeegIEkHbIDcVFUCsCjA
H0IQXAH/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2266&bt=1133&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Njo2NGQ2NzU2ZTc3ZjYzPEBpMzU5eWc6ZnllajMzZzczNE
AvYTM2M2JgXjYxMmEwXjFfYSNfaGBlcjRnaG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588679&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=d57d993a5380fb246c647a877f3f4766&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ow3JISNFSnALpaBYbKeWDRkQAEfgqBYN
UVbS0D/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2594&bt=1297&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Nzc4OTQ0aTg4OWdlOTs2N0BpamRlZWU6Zm5kajMzZzczNEA
tMmMyYTJhNTUxMF4wMV8uYSMzczYucjRnMW5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=3335421afd79e0dad8d5b3613d102060&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ow3JISNFSnALpaBYbKeWDRkQAEfgqBY
NUVbS0D/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2594&bt=1297&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=Nzc4OTQ0aTg4OWdlOTs2N0BpamRlZWU6Zm5kajMzZzczNE
AtMmMyYTJhNTUxMF4wMV8uYSMzczYucjRnMW5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=3335421afd79e0dad8d5b3613d102060&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/oYZR1kIYbABkQ0nlEvX0LeUg5eR3NNjB
aSDIDg/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&br=3000&bt=1500&bti=ODszNWYuMDE6&cs=0&ds=3&ft=4f
UEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NGk2NztkO2YzOjU1NzVlNUBpM3M4Zzs6ZnNnajMzZzczNEA1NTE0
YGI1XjMxMF4wXi8wYSNkaDRzcjRfMm5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588675&l=20240222015748CA387BDDD110B
E140324&ply_type=2&policy=2&signature=d305dacfffaa55a3c9dcd644b99365d3&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/oYZR1kIYbABkQ0nlEvX0LeUg5eR3NNj
BaSDIDg/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&br=3000&bt=1500&bti=ODszNWYuMDE6&cs=0&ds=3&ft=4
fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NGk2NztkO2YzOjU1NzVlNUBpM3M4Zzs6ZnNnajMzZzczNEA1NTE
0YGI1XjMxMF4wXi8wYSNkaDRzcjRfMm5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588675&l=20240222015748CA387BDDD110
BE140324&ply_type=2&policy=2&signature=d305dacfffaa55a3c9dcd644b99365d3&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ocNc0EqABQAhM8wkAOzOpyUCGIB8LwIK
lftCUa/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2046&bt=1023&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NTlkaDM5M2Q6ZWlkNzg6NUBpamhtOTM6Zm9lajMzZzczNEA
uYS8yMV8yNjExMDM2Yy4wYSNqbGdmcjQwcG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588678&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=505070e82d90b9cd36b027e2f6a5f268&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/ocNc0EqABQAhM8wkAOzOpyUCGIB8LwI
KlftCUa/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2046&bt=1023&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=NTlkaDM5M2Q6ZWlkNzg6NUBpamhtOTM6Zm9lajMzZzczNE
AuYS8yMV8yNjExMDM2Yy4wYSNqbGdmcjQwcG5gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588678&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=505070e82d90b9cd36b027e2f6a5f268&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
WARNING 内容长度为0,跳过下载
ERROR HTTP状态错误, 尝试GET请求失败:
https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/o8fUgiNIIIB0DokGbeNlEXDB0nTgbGAy
RQBF0S/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2062&bt=1031&bti=ODszNWYuMDE6&cs=0&ds=3&
ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=ZDtkaDo3aTY4PDZkaDg2ZUBpM2xrNjw6ZnNnajMzZzczNEB
iYWBfXmAyXzYxXmAuYDQyYSMwc2BmcjRfL25gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BDD
D110BE140324&ply_type=2&policy=2&signature=cef8c27bd0b6457046fbde22fd5fe8c5&tk=tt_chain_token, 错误详情: Client
error '403 Forbidden' for url
'https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/o8fUgiNIIIB0DokGbeNlEXDB0nTgbGA
yRQBF0S/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C&cv=1&br=2062&bt=1031&bti=ODszNWYuMDE6&cs=0&ds=3
&ft=4fUEKMZj8Zmo0mg4794jVb0ATpWrKsd.&mime_type=video_mp4&qs=0&rc=ZDtkaDo3aTY4PDZkaDg2ZUBpM2xrNjw6ZnNnajMzZzczNE
BiYWBfXmAyXzYxXmAuYDQyYSMwc2BmcjRfL25gLS1kMS9zcw%3D%3D&btag=e00088000&expire=1708588677&l=20240222015748CA387BD
DD110BE140324&ply_type=2&policy=2&signature=cef8c27bd0b6457046fbde22fd5fe8c5&tk=tt_chain_token'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
WARNING 内容长度为0,跳过下载
第 1 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=tiktok_we
b&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%2520%2528Wi
ndows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KHTML%252C%2520like%2520Gecko
%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabled=true&device_id=730606072183785216
7&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_fullscreen=false&is_page_visible=true&language
=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_referer=https%253A%252F%252Fwww.tiktok.com%252F&screen_heig
ht=1080&screen_width=1920&webcast_language=zh-Hans&tz_name=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo
2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&cover
Format=2&count=5&cursor=1681177507000&secUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZ
P&X-Bogus=DFSzswVuf%2F0ANxXhtosmwF9WX7j3
WARNING 第 1 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=
tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_versi
on=5.0%2520%2528Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KH
TML%252C%2520like%2520Gecko%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabl
ed=true&device_id=7306060721837852167&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_f
ullscreen=false&is_page_visible=true&language=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_refer
er=https%253A%252F%252Fwww.tiktok.com%252F&screen_height=1080&screen_width=1920&webcast_language=zh-Hans&tz_nam
e=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-
TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&coverFormat=2&count=5&cursor=1681177507000&s
ecUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZP&X-Bogus=DFSzswVuf%2F0ANxXhto
smwF9WX7j3
第 2 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=tiktok_we
b&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%2520%2528Wi
ndows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KHTML%252C%2520like%2520Gecko
%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabled=true&device_id=730606072183785216
7&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_fullscreen=false&is_page_visible=true&language
=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_referer=https%253A%252F%252Fwww.tiktok.com%252F&screen_heig
ht=1080&screen_width=1920&webcast_language=zh-Hans&tz_name=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo
2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&cover
Format=2&count=5&cursor=1681177507000&secUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZ
P&X-Bogus=DFSzswVuf%2F0ANxXhtosmwF9WX7j3
WARNING 第 2 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/post/item_list/?WebIdLastTime=1708567071&aid=1988&app_language=zh-Hans&app_name=
tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_versi
on=5.0%2520%2528Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64%2529%2520AppleWebKit%252F537.36%2520%2528KH
TML%252C%2520like%2520Gecko%2529%2520Chrome%252F119.0.0.0%2520Safari%252F537.36&channel=tiktok_web&cookie_enabl
ed=true&device_id=7306060721837852167&device_platform=web_pc&focus_state=true&from_page=user&history_len=4&is_f
ullscreen=false&is_page_visible=true&language=zh-Hans&os=windows&priority_region=&referer=&region=SG&root_refer
er=https%253A%252F%252Fwww.tiktok.com%252F&screen_height=1080&screen_width=1920&webcast_language=zh-Hans&tz_nam
e=Asia%252FHong_Kong&msToken=BVXCX5Od7pBh--V3pp2LVCRJuSgMq1exgo2DTVcl4fN947GwrFHXemtH8v7keH5V2EC6jzR767LMvYz4T-
TkY52Ex1srwzTcuH1_HxlNyfgjO02v3oTYdToH4iIwms5KeZL4VETw_3aX_ipTGQ==&coverFormat=2&count=5&cursor=1681177507000&s
ecUid=MS4wLjABAAAAS42nLiilCCNqrWHWZuOuaFtMCzdf7-UWS5OHbxCtii_9tQvgKCrc0leKHIUosMZP&X-Bogus=DFSzswVuf%2F0ANxXhto
smwF9WX7j3
💛 [ 丢失 ]:2023-04-11 09-45-07_...this_song_video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💛 [ 丢失 ]:2023-04-11 09-58-52
...is_time____video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 09-45-07_...this_song_video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 09-58-52
...is_time____video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 08-00-57_...e_good_____video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 11-24-24_..._awwww_man_video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA
💙 [ 丢失 ]:2023-04-11 11-18-00__video.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/? bytes ? ETA

C:\Users\Lee>

网络的问题已经解决了,这个错误在昨天的提交里已经修复了,你可以往上翻

@shichuanenhui
Copy link
Author

0.0.1.5那个分支源码下载下来替换到 C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok
这里就行了嘛?

@Johnserf-Seed
Copy link
Owner

0.0.1.5那个分支源码下载下来替换到 C:\Program Files\Python311\Lib\site-packages\f2\apps\tiktok
这里就行了嘛?

对,然后下载显示丢失这个问题你还可以重新切换代理和更新cookie来尝试消除。

@shichuanenhui
Copy link
Author

现在就剩一个问题了,就是下载不下来,提示视频丢失😄,节点换了几个,cookie使用f2 tk -c conf/app.yaml --auto-cookie edge
和f2 tk -k "从浏览器中复制的cookie" -c conf/app.yaml --update-config这个都试了,还是提示丢失

@Johnserf-Seed
Copy link
Owner

现在就剩一个问题了,就是下载不下来,提示视频丢失😄,节点换了几个,cookie使用f2 tk -c conf/app.yaml --auto-cookie edge
和f2 tk -k "从浏览器中复制的cookie" -c conf/app.yaml --update-config这个都试了,还是提示丢失

添加-d参数 f2 -d DEBUG tk -c conf/app.yaml 查看详细输出,复制终端里那个作品的链接到postman测试能否访问成功。

@Johnserf-Seed
Copy link
Owner

情况解决了吗?

@shichuanenhui
Copy link
Author

没有。始终提示视频丢失,就是视频链接访问失败,切节点和换cookie都不行,视频链接用postman也不好使
我用过浏览器的插件猫抓,抓取视频链接,抓出来的链接和你的工具获取到的是一样的,但是猫抓 抓取出来的链接用postman访问也不好使,只有用它自己的下载器才能下载

@shichuanenhui
Copy link
Author

shichuanenhui commented Feb 26, 2024

应该是tiktok做了限制,下载链接不能随便用一个工具就行下载,估计得适配下

@shichuanenhui
Copy link
Author

获得的链接没问题,就是下载不了

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

2 participants