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

[BUG] 启动说 profile 初始化缺少header ? 我加了个浏览器header进去,报 连接创建异常错误,为什么呢 #434

Closed
ldh127 opened this issue May 19, 2023 · 2 comments
Assignees
Labels
故障(bug) 代码问题导致的错误(Bugs caused by code problems) 额外求助(help wanted) 非项目代码错误的求助(Extra attention is needed) 无效(invalid) 非代码故障导致错误或异常(Non-code faults causing errors or anomalies)

Comments

@ldh127
Copy link

ldh127 commented May 19, 2023

描述出现的错误
对bug的清晰而简洁的描述。

bug复现
复现这次行为的步骤:
1.更改了什么什么
2.点击了什么什么
3.“……”

截图
如果适用,添加屏幕截图以帮助解释您的问题。

桌面(请填写以下信息):
-操作系统:[例如windows10 64bit]
-vpn代理[例如开启、关闭]
-版本[如1.2.3]

附文
在此处添加有关此问题的文字。

@ldh127 ldh127 added 故障(bug) 代码问题导致的错误(Bugs caused by code problems) 额外求助(help wanted) 非项目代码错误的求助(Extra attention is needed) 无效(invalid) 非代码故障导致错误或异常(Non-code faults causing errors or anomalies) labels May 19, 2023
@ldh127
Copy link
Author

ldh127 commented May 19, 2023

问题修改了,我用的是老版本的example,更新了example.py ,代码里带了 header ,但是依然response返回为空,

[ 🚩 ]:目前 13080 版本已是最新
[ 警告 ]:未检测到命令,将使用配置文件进行批量下载!
[ 提示 ]:读取本地配置完成!
[ 警告 ]:未检测到命令,将使用配置文件进行批量下载!
[ 提示 ]:读取本地配置完成!
[ 提示 ]:批量获取所有视频中!
[ 提示 ]:用户的sec_id=MS4wLjABAAAAj58xzuWsn5KU_0NXPVYizwV7IfEKJIw2BKDf7eO1DeqRiFQTPcpdU31vlZe2fMLl
[ 错误 ]:HTTPConnectionPool(host='127.0.0.1', port=8889): Max retries exceeded with url: /xg/path?url=aid=6383%26sec_user_id=MS4wLjABAAAAj58xzuWsn5KU_0NXPVYizwV7IfEKJIw2BKDf7eO1DeqRiFQTPcpdU31vlZe2fMLl%26count=35%26max_cursor=0%26cookie_enabled=true%26platform=PC%26downlink=10 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94ede25b10>: Failed to establish a new connection: [Errno 111] Connection refused'))
response: {}
Traceback (most recent call last):
File "batch_down.py", line 17, in
profile.getProfile(cmd.setting())
File "/home/ubuntu/all_root/workspace_root/jupyter_workspace/TikTokDownload/Util/Profile.py", line 85, in getProfile
self.sec))
File "/home/ubuntu/all_root/workspace_root/jupyter_workspace/TikTokDownload/Util/XB.py", line 30, in init
self.getXbogus(url)
File "/home/ubuntu/all_root/workspace_root/jupyter_workspace/TikTokDownload/Util/XB.py", line 54, in getXbogus
self.params = response["result"][0]["paramsencode"]
KeyError: 'result'

@ldh127
Copy link
Author

ldh127 commented May 19, 2023

问题已经解决: flask 版本问题
Werkzeug <= 2.1.2
flask == 2.1.2 完美运行

Johnserf-Seed added a commit that referenced this issue Aug 4, 2023
…#287 #294 #312 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485

1、全面升级aiohttp作为异步网络请求,asyncio为密集型IO
2、将导入的库做一个分类排序
3、新增昵称映射、登录、版本自定义模块
4、删除图集模块(现统一由Profile模块处理)
5、优化初始化控制台输出信息,由rich美化
6、偷懒欠了一屁股issues🥴
#155 #191 #202 #203 #206 #220 #226 #227 #243 #267 #287 #294 #312 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485
Johnserf-Seed added a commit that referenced this issue Aug 4, 2023
…294 #312 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485

1、重构所有逻辑改使用异步,便于个人开发调用
2、create_user_folder函数用于创建作品保存目录并返回路径
3、re_match匹配用户的唯一标识
4、get_request_data返回接口的数据
5、get_all_sec_user_id返回用户的唯一标识
6、get_diff_type_url根据传入配置文件中的mode和用户sec_user_id,生成不同作品类型的接口链接
7、get_user_base_info获取用户im基本数据
8、get_user_profile_info获取用户完整信息
9、get_user_post_info获取用户的作品信息
10、get_Profile 相当于main
#155 #191 #202 #203 #206 #220 #226 #227 #243 #267 #287 #294 #312 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485
Johnserf-Seed added a commit that referenced this issue Aug 4, 2023
 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485

1、引入了 "update" 参数来决定是否每次进行版本更新
2、自定义URL常量,方便修改
3、使用 os.path.join() 代替手动拼接路径,以提高跨平台兼容性
4、提取了进度条显示功能,简化了 zip_Download 方法
5、优化了对用户输入的处理,改用循环重新询问,直到用户输入有效值为止
6、使用 shutil.move() 和 shutil.rmtree() 代替 os.rename() 和 os.removedirs(),以解决部分情况下无法移动或删除文件的问题
#155 #191 #202 #203 #206 #220 #226 #227 #243 #267 #287 #294 #312 #320 #332 #335 #341 #343 #346 #355 #357 #360 #361 #362 #364 #365 #367 #370 #372 #374 #376 #377 #379 #380 #381 #382 #383 #393 #394 #397 #398 #399 #401 #402 #403 #404 #406 #407 #408 #410 #414 #416 #419 #420 #422 #423 #426 #431 #432 #433 #434 #435 #436 #437 #446 #448 #449 #450 #451 #452 #454 #455 #456 #567 #460 #466 #469 #470 #471 #472 #475 #476 #477 #480 #481 #483 #484 #485
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
故障(bug) 代码问题导致的错误(Bugs caused by code problems) 额外求助(help wanted) 非项目代码错误的求助(Extra attention is needed) 无效(invalid) 非代码故障导致错误或异常(Non-code faults causing errors or anomalies)
Projects
None yet
Development

No branches or pull requests

2 participants