Skip to content

使用百度人像处理对微博图片进行筛选,下载颜值大于设定阈值的图片到本地

Notifications You must be signed in to change notification settings

ZZShi/weibo_pic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

weibo_pic

使用百度人像处理对微博图片进行筛选,下载颜值大于设定阈值的图片到本地

安装库


pip install requests

pip install beautifulsoup4

pip install baidu-aip

百度人脸人别

人脸识别调用了百度AI开放平台的API,此服务需要注册使用;传入需要解析的照片,设置参数,得到需要的结果;具体文档请参考文档中心--百度AI-百度AI-AI开放平台

结果展示


本次爬取的目标为迪丽热巴的微博,如果需要爬取其它目标,只需在weibo_pic.py中更改全部变量VALUE

如何获取VALUE,打开目标的微博链接,如迪丽热巴:https://weibo.com/u/1669879400?is_hot=1 ,则VALUE为1669879400


图片加载失败

About

使用百度人像处理对微博图片进行筛选,下载颜值大于设定阈值的图片到本地

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages