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
作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 #208
Labels
Comments
在配置文件写入 Cookie 后重新运行。 |
JoeanAmier
added
功能异常(bug)
需要修复的问题
确认问题(confirm)
未来将会修复问题
处理完成(complete)
处理完成的问题
labels
Apr 28, 2024
setting.json那个文件是吗
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月28日(周日) 下午3:05
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [JoeanAmier/TikTokDownloader] 作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 (Issue #208)
在配置文件写入 Cookie 后重新运行。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
遇到相同问题,a8775b24b0d0440d73e915fa0827a6d7033373e4这个commit的代码无报错 ,f84ea07cf0e61d92834a838753739762b7296f0e报错。 |
@ShaoMingYu888 反馈时注意对配置文件 Cookie 脱敏,以防 Cookie 泄露! |
好的我等下删了,目前这个问题他是bug吗?还是我的问题啊?
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月28日(周日) 晚上9:16
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [JoeanAmier/TikTokDownloader] 作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 (Issue #208)
@ShaoMingYu888 反馈时注意对配置文件 Cookie 脱敏,以防 Cookie 泄露!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
百分百现
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月28日(周日) 晚上9:20
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [JoeanAmier/TikTokDownloader] 作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 (Issue #208)
image.png (view on web)
测试没有重现问题,你是百分百重现吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
我下载的那个tiktokDownloader-master.zip,是这个包吗?还是那个什么sound的那个包
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月28日(周日) 晚上9:20
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [JoeanAmier/TikTokDownloader] 作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 (Issue #208)
image.png (view on web)
测试没有重现问题,你是百分百重现吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
我这个包下载下来,然后我就cmd进这个安装路径,然后创建一个环境激活,然后就执行一下那个requirement的那个文件,安装一下一些依赖。然后我就直接执行main.py,我在公司那台电脑和我回家自己这个笔记本儿都是提示这个,那个cookies我拷贝下来,我直接在网上百度在线转换成那种json格式拷贝过来的。就老是提示这个网络异常,后面这个url也不知道是哪里的。,然后那个ttwid刚才发的那个参数,你应该看到我cookies里面有这个参数,它也会提示获取ttwid参数失败。或者你方便更新一版最新的我试一下嘛。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月28日(周日) 晚上9:20
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [JoeanAmier/TikTokDownloader] 作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 (Issue #208)
image.png (view on web)
测试没有重现问题,你是百分百重现吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
可以先使用 |
好的
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年4月28日(周日) 晚上9:31
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [JoeanAmier/TikTokDownloader] 作者大大请问我下载代码之后本地跑,引入了cookies之后后续执行老是提示这个网络异常是什么问题呀,我网络正常的 (Issue #208)
可以先使用 5.3 版本,五月份会有新的推送,届时再尝试最新源码。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(venv123) (base) PS D:\TikTokDownloader-5.3> python .\main.py
项目地址: https://github.com/JoeanAmier/TikTokDownloader
项目文档: https://github.com/JoeanAmier/TikTokDownloader/wiki/Documentation
开源许可: GNU General Public License v3.0
注意:本项目正在重构代码,功能尚不稳定,不适合日常使用!
[b bright_red]配置文件 settings.json 缺少
mix_urls_tiktok、accounts_urls_tiktok、cookie_tiktok、owner_url_tiktok、update_cookie、update_cookie_tiktok、proxy、pro
xy_tiktok 参数,是否需要生成默认配置文件(YES/NO): [/b bright_red]yes
创建默认配置文件 settings.json 成功!
请参考项目文档的快速入门部分,设置 Cookie 后重新运行程序!
建议根据实际使用需求修改配置文件 settings.json!
本次运行将会使用各项参数默认值,程序功能可能无法正常使用!
正在更新抖音 Cookie 参数,请稍等...
抖音 Cookie 参数更新完毕!
正在更新 TikTok Cookie 参数,请稍等...
Exception in thread Thread-2 (periodic_update_cookie):
Traceback (most recent call last):
File "D:\miniconda3\Lib\threading.py", line 1073, in _bootstrap_inner
self.run()
File "D:\miniconda3\Lib\threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "D:\TikTokDownloader-5.3\src\application\TikTokDownloader.py", line 347, in periodic_update_cookie
run(inner())
File "D:\miniconda3\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "D:\miniconda3\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda3\Lib\asyncio\base_events.py", line 684, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\TikTokDownloader-5.3\src\application\TikTokDownloader.py", line 343, in inner
await self.parameter.update_cookie()
File "D:\TikTokDownloader-5.3\src\config\parameter.py", line 410, in update_cookie
self.__update_download_headers()
File "D:\TikTokDownloader-5.3\src\config\parameter.py", line 426, in __update_download_headers
self.headers_download_tiktok["Cookie"] = self.headers_tiktok["Cookie"]
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'Cookie'
当前已是最新开发版
请选择 TikTokDownloader 运行模式:
=========================
=========================
2
自动读取指定浏览器的 Cookie 并写入配置文件
支持浏览器:1 Chrome, 2 Chromium, 3 Opera, 4 Opera GX, 5 Brave, 6 Edge, 7 Vivaldi, 8 Firefox, 9 LibreWolf, 10 Safari
请关闭所有浏览器,然后输入浏览器序号:1
保存配置成功!
正在更新抖音 Cookie 参数,请稍等...
网络异常:0, message='', url=URL('https://ttwid.bytedance.com/ttwid/union/register/')
网络异常:0, message='', url=URL('https://ttwid.bytedance.com/ttwid/union/register/')
请选择 TikTokDownloader 运行模式:
=========================
=========================
网络异常:0, message='', url=URL('https://ttwid.bytedance.com/ttwid/union/register/')
网络异常:0, message='', url=URL('https://ttwid.bytedance.com/ttwid/union/register/')
网络异常:0, message='', url=URL('https://ttwid.bytedance.com/ttwid/union/register/')
网络异常:0, message='', url=URL('https://ttwid.bytedance.com/ttwid/union/register/')
获取 ttwid 参数失败!
抖音 Cookie 参数更新完毕!
正在更新 TikTok Cookie 参数,请稍等...
TikTok Cookie 参数更新完毕!
8
代码正在重构,暂不可用!
请选择 TikTokDownloader 运行模式:
=========================
=========================
7
代码正在重构,暂不可用!
请选择 TikTokDownloader 运行模式:
=========================
=========================
6
请选择采集功能:
2
请选择作品链接来源:
1
请输入作品链接: https://www.douyin.com/video/7362499625007303963?modeFrom=
共提取到 1 个作品,开始处理!
网络异常:0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&pc_cl
ient_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_lan
guage=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=124.0.0.0&browser_online=true&engine_name=Blink&en
gine_version=124.0.0.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=8&platform=PC&downlink=1.45&effectiv
e_type=3g&round_trip_time=350&aweme_id=7362499625007303963&X-Bogus=DFSzswVuSmzANebZt2LfHrzDOl8m')
正在进行第 1 次重试
网络异常:0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&pc_cl
ient_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_lan
guage=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=124.0.0.0&browser_online=true&engine_name=Blink&en
gine_version=124.0.0.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=8&platform=PC&downlink=1.45&effectiv
e_type=3g&round_trip_time=350&aweme_id=7362499625007303963&X-Bogus=DFSzswVuSmzANebZt2LfHrzDOl8m')
正在进行第 2 次重试
网络异常:0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&pc_cl
ient_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_lan
guage=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=124.0.0.0&browser_online=true&engine_name=Blink&en
gine_version=124.0.0.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=8&platform=PC&downlink=1.45&effectiv
e_type=3g&round_trip_time=350&aweme_id=7362499625007303963&X-Bogus=DFSzswVuSmzANebZt2LfHrzDOl8m')
正在进行第 3 次重试
网络异常:0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&pc_cl
ient_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_lan
guage=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=124.0.0.0&browser_online=true&engine_name=Blink&en
gine_version=124.0.0.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=8&platform=PC&downlink=1.45&effectiv
e_type=3g&round_trip_time=350&aweme_id=7362499625007303963&X-Bogus=DFSzswVuSmzANebZt2LfHrzDOl8m')
正在进行第 4 次重试
网络异常:0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&pc_cl
ient_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_lan
guage=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=124.0.0.0&browser_online=true&engine_name=Blink&en
gine_version=124.0.0.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=8&platform=PC&downlink=1.45&effectiv
e_type=3g&round_trip_time=350&aweme_id=7362499625007303963&X-Bogus=DFSzswVuSmzANebZt2LfHrzDOl8m')
正在进行第 5 次重试
网络异常:0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/aweme/detail/?device_platform=webapp&aid=6383&channel=channel_pc_web&pc_cl
ient_type=1&version_code=190500&version_name=19.5.0&cookie_enabled=true&screen_width=1536&screen_height=864&browser_lan
guage=zh-CN&browser_platform=Win32&browser_name=Edge&browser_version=124.0.0.0&browser_online=true&engine_name=Blink&en
gine_version=124.0.0.0&os_name=Windows&os_version=10&cpu_core_num=16&device_memory=8&platform=PC&downlink=1.45&effectiv
e_type=3g&round_trip_time=350&aweme_id=7362499625007303963&X-Bogus=DFSzswVuSmzANebZt2LfHrzDOl8m')
获取作品数据失败
请输入作品链接:
The text was updated successfully, but these errors were encountered: