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

search.py里面可以设置保存用户头像吗 #25

Open
CaptainChristmas opened this issue Mar 18, 2024 · 4 comments
Open

search.py里面可以设置保存用户头像吗 #25

CaptainChristmas opened this issue Mar 18, 2024 · 4 comments

Comments

@CaptainChristmas
Copy link

No description provided.

@CaptainChristmas
Copy link
Author

我在profile.py看到有以下函数:
def save_profile_info(self, url):
profile = self.get_profile_info(url)
print(f'开始保存用户{profile.nickname}基本信息')
userId = profile.userId
nickname = norm_str(profile.nickname)
path = f'./datas/{nickname}_{userId}'
check_and_create_path(path)
download_media(path, 'avatar', profile.avatar, 'image', '用户头像')
save_user_detail(path, profile)
print(f'User {nickname} 信息保存成功')
return profile

    但是不知道如何在search调用

@cv-cat
Copy link
Owner

cv-cat commented Mar 19, 2024

参考profile.py

@CaptainChristmas
Copy link
Author

CaptainChristmas commented Mar 24, 2024 via email

@cv-cat
Copy link
Owner

cv-cat commented Mar 24, 2024 via email

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

2 participants