-
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
WARNING 第 N 次响应内容为空 #703
Labels
已确认(confirmed)
该issue已被处理,将在下次推送中更新(The issue has been processed and will be updated in the next push)
提问(question)
想得到更多的详细支持(Further information is requested)
Comments
代码片段里就是直接从代码获取数据的方法,配置cookie就可以。直接检查配置文件是否有问题输入命令查看f2 -d DEBUG dy -c 配置文件路径 |
你可以像这样从配置文件生成 import asyncio
from f2.apps.douyin.handler import DouyinHandler
from f2.utils.conf_manager import ConfigManager
kwargs = {
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
kwargs |= ConfigManager("你的自定义配置路径").get_config("douyin")
... |
Johnserf-Seed
added
提问(question)
想得到更多的详细支持(Further information is requested)
and removed
故障(bug)
代码问题导致的错误(Bugs caused by code problems)
labels
Jun 23, 2024
Johnserf-Seed
added a commit
to Johnserf-Seed/f2
that referenced
this issue
Jun 27, 2024
Johnserf-Seed
added a commit
to Johnserf-Seed/f2
that referenced
this issue
Jun 27, 2024
Johnserf-Seed
added
the
已确认(confirmed)
该issue已被处理,将在下次推送中更新(The issue has been processed and will be updated in the next push)
label
Jun 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
已确认(confirmed)
该issue已被处理,将在下次推送中更新(The issue has been processed and will be updated in the next push)
提问(question)
想得到更多的详细支持(Further information is requested)
我遇到了 WARNING 第 N 次响应内容为空
按照 QA文档 https://johnserf-seed.github.io/f2/question-answer/qa.html 设置了cookie
cookie: 'douyin.com; xgplayer_user_id=
但还是相应为空
WARNING 第 5 次响应内容为空, 状态码: 200,
URL:https://www.douyin.com/aweme/v1/web/aweme/favorite/?device_platfor
yaml的位置是这样的,不知道是不是我路径写错了没找到。
###有没有能从程序里获取到配置信息的方法啊?方便检查配置文件是不是有问题的那种?
这个labels能不能没有?我这只算问问题,不算是提交故障或者建议吧……
The text was updated successfully, but these errors were encountered: