-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
使用版本1.5被封号记录 #680
Comments
看来扫码功能还是移除为好。 |
这些代码是什么问题,该怎么解决 以下由kimi.ai回答 这段错误信息是Python程序运行时的异常堆栈跟踪。从提供的信息来看,这个错误发生在尝试使用f2命令行工具(可能是一个用于与抖音交互的脚本或程序)时。具体的错误是TypeError: 'NoneType' object does not support item assignment,这意味着代码试图给一个None类型的对象赋值,但是None类型的对象不支持赋值操作。 错误发生在/f2/apps/douyin/cli.py文件的第451行,具体是在尝试给字典main_conf中的"proxies"键赋值时。这通常意味着main_conf变量是None,而不是一个字典。 要解决这个问题,你需要检查main_conf变量是如何被赋值的,确保在尝试赋值之前,它已经被正确初始化为一个字典。以下是一些可能的解决步骤:
不懂编程,还是看不懂 |
如果你按照文档的配置文件初始化步骤进行就不会出错https://johnserf-seed.github.io/f2/site-config.html |
f2 dy --auto-cookie edge (查看配置文件确已取得cookie) |
f2 -d DEBUG dy |
应该是他的帐号被封了,其他人的可以。非常感谢 |
这是app.yaml的配置
url: music:no cover:no desc:no path:Download folderize:no mode:post naming:'{create}_{id}' cookie: interval:all timeout: 5 max_retries: 3 max_connections: 5 max_counts: 0 max_tasks: 6 page_counts: 20 languages:
执行命令:
python3 ./TikTokTool.py --sso-login -u https://www.douyin.com/user/XXXXXXXXXXX
1.Douyin 2.TikTok: [1/2]: 1
这个怎么设置默认为“1” douyin ??? 不用手动输入选择?
扫码登录
INFO [ 登录 ]:等待二维码扫描!
INFO [ 登录 ]:扫描二维码成功!
INFO [ 登录 ]:确认二维码登录!
出现的错误信息
Traceback (most recent call last): File "aaaaaa/TikTokTool.py", line 51, in <module> clis[int(selected) - 1]() File "aaaaaaaa/py-env/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/click/core.py", line 1077, in main with self.make_context(prog_name, args, **extra) as ctx: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/click/core.py", line 943, in make_context self.parse_args(ctx, args) File "aaaaaaaa/py-env/lib/python3.11/site-packages/click/core.py", line 1408, in parse_args value, args = param.handle_parse_result(ctx, opts, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/click/core.py", line 2400, in handle_parse_result value = self.process_value(ctx, value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/click/core.py", line 2362, in process_value value = self.callback(ctx, self, value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/f2/apps/douyin/cli.py", line 214, in handler_sso_login manager = ConfigManager( ^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/f2/utils/conf_manager.py", line 25, in __init__ self.config = self.load_config() ^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/f2/utils/conf_manager.py", line 33, in load_config return yaml.safe_load(self.filepath.read_text(encoding="utf-8")) or {} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/__init__.py", line 125, in safe_load return load(stream, SafeLoader) ^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/__init__.py", line 81, in load return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() ^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() ^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/composer.py", line 64, in compose_node if self.check_event(AliasEvent): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() ^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/scanner.py", line 115, in check_token while self.need_more_tokens(): ^^^^^^^^^^^^^^^^^^^^^^^ File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/scanner.py", line 152, in need_more_tokens self.stale_possible_simple_keys() File "aaaaaaaa/py-env/lib/python3.11/site-packages/yaml/scanner.py", line 291, in stale_possible_simple_keys raise ScannerError("while scanning a simple key", key.mark, yaml.scanner.ScannerError: while scanning a simple key in "<unicode string>", line 3, column 3: music:no ^ could not find expected ':' in "<unicode string>", line 4, column 3: cover:no ^
两秒后,手机抖音被封,掉线
接着收到短信
【抖音】你的抖音号XXXXXX行为异常, 已被锁定。如需解锁,请进入抖音客户端登录 在弹出对话框中点击「解除锁定」按指引操作。
幸好还可以解封。
桌面(请填写以下信息):
-操作系统:debian
-vpn代理:[关闭]
-项目版本:[1.5.0.0]
-py版本:[3.11]
The text was updated successfully, but these errors were encountered: