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

求助大佬,在爬取的user.csv文件中无法爬取生日、所在地、学校以及注册时间信息 #475

Open
xr020 opened this issue Dec 11, 2024 · 1 comment

Comments

@xr020
Copy link

xr020 commented Dec 11, 2024

求助大佬,在爬取的user.csv文件中无法获取生日、所在地、学校以及注册时间信息,大佬有没有解决办法或者代码修改思路呀?

@xr020
Copy link
Author

xr020 commented Dec 11, 2024

非常感谢大佬开源的代码,我借助了ai对代码进行了调试,现在已经成功解决了这个问题!解决思路是首先是在解析用户信息时,打印返回数据结构以确认字段是否正确,代码:logger.debug(f"返回的用户数据结构:{js}")。发现程序其实可以完整的获取目标字段的数据。而后考虑是否是字段映射问题导致无法成功写入,通过对代码进行修改,遍历所有card_group,确保目标字段被正确提取,解决了问题。

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

1 participant