查看原文
其他

一键批量下微博内容/图片/视频,获取博主最受欢迎微博,图片查找微博博主

苏生不惑 苏生不惑 2022-08-04

苏生不惑第293 篇原创文章,将本公众号设为星标,第一时间看最新文章。

之前分享过很多微博的文章:

一键备份微博并导出生成PDF,顺便用Python分析微博账号数据

如何更优雅地使用微博

再谈备份微博

想方便快捷的分享/收藏图片?试试免费好用的微博/b站图床

王菲k歌又上微博热搜,Python分析下微博网友评论

视频下载神器:支持腾讯/优酷/爱奇艺/b站/微博等全网视频

一键下载QQ空间相册,微博相册,知乎回答图片,豆瓣图片,instagram图片

今天分享下如何一键批量下微博博主的微博,图片和视频,顺便找出博主最受欢迎的10条微博(根据评论转发赞数排序)。

首先下载我打包的工具(在公众号后台对话框回复 微博 获取软件),使用很简单,双击打开输入微博uid,是否下载图片和视频,1为是,0为否,如果想全部下载时间就输入2010-01-01。

cookie需要登陆网页版微博https://m.weibo.cn/ 在控制台获取。

然后等待抓取下载,下载完成后的文件在weibo目录下。下载的所有微博图片:下载的所有微博视频:下载的所有微博博文excel文件:

这里再根据微博点赞转发评论数之和做个降序排列,这样就能找出受欢迎的微博了。

import pandas as pd
df=pd.read_csv('weibo/歌手李健/1744395855.csv')
df['sort']=df['点赞数']+df['转发数']+df['评论数']
df.sort_values(by=['sort'],ascending=False, inplace=True)
df.head(10).to_csv('歌手李健.csv',encoding='utf_8_sig',index=False)

李健老师排名前10的微博地址如下:

https://www.weibo.com/1744395855/Jfpw2xihv
https://www.weibo.com/1744395855/Cc3T09sqM
https://www.weibo.com/1744395855/C535GhEoh
https://www.weibo.com/1744395855/ChaNZmx6A
https://www.weibo.com/1744395855/Ckrkv2A0b
https://www.weibo.com/1744395855/Gt5of2OCo
https://www.weibo.com/1744395855/Cq31ddlKN
https://www.weibo.com/1744395855/CfNZzoAMV
https://www.weibo.com/1744395855/C7BcXcBSm
https://www.weibo.com/1744395855/CD7NmbtWZ

顺便再分析下他的微博内容,他的微博词云图:每个月转发评论赞数总和。原创微博和转发比例。发微博工具比例。

再分享几个微博博主的数据。

刘亦菲

神仙姐姐的受欢迎前10的微博地址:

https://www.weibo.com/3261134763/IvZoCsDB5
https://www.weibo.com/3261134763/IDqVVtW2d
https://www.weibo.com/3261134763/H29K0xhDS
https://www.weibo.com/3261134763/J2j4kvgnx
https://www.weibo.com/3261134763/JeaVXxfo1
https://www.weibo.com/3261134763/IAfIxBgu2
https://www.weibo.com/3261134763/J0FWdzzig
https://www.weibo.com/3261134763/IjoHYmX6g
https://www.weibo.com/3261134763/Kj3LexGBe
https://www.weibo.com/3261134763/IEO8ijQBF

顺便用之前分享的工具合成上千张刘亦菲为一张图微信神器:一键批量下载微信好友头像并拼成一张图

热知识bot

冷知识的兄弟热知识博主的受欢迎前10的微博地址:

https://www.weibo.com/5106096849/IEIgcf9US
https://www.weibo.com/5106096849/Jws39cSEV
https://www.weibo.com/5106096849/Ig8Vr2x9R
https://www.weibo.com/5106096849/JfKYCxFHy
https://www.weibo.com/5106096849/IE0X18yEL
https://www.weibo.com/5106096849/I0vSyhXsu
https://www.weibo.com/5106096849/IFgAe1yX6
https://www.weibo.com/5106096849/JASEBaAq0
https://www.weibo.com/5106096849/IFfld9dXr
https://www.weibo.com/5106096849/Jd081uj4b

千禧bot

带你怀旧追忆时光,他的受欢迎前10的微博地址:

https://www.weibo.com/6774131741/JBd4BxtDZ
https://www.weibo.com/6774131741/KuPR98znI
https://www.weibo.com/6774131741/KmM3rtXea
https://www.weibo.com/6774131741/IsOXi3qdD
https://www.weibo.com/6774131741/ItAy7BJRG
https://www.weibo.com/6774131741/JhKgtzK2U
https://www.weibo.com/6774131741/Jx5Y3oUrc
https://www.weibo.com/6774131741/JmC2kr2oG
https://www.weibo.com/6774131741/Jlycdodum
https://www.weibo.com/6774131741/Iu3GKhNoJ

冷知识bot

他的受欢迎前10的微博地址:

https://www.weibo.com/3911558393/Hxkxr3CWM
https://www.weibo.com/3911558393/JfzA9bbmb
https://www.weibo.com/3911558393/IreJGwcSb
https://www.weibo.com/3911558393/HEQwh5blq
https://www.weibo.com/3911558393/IA93NawDt
https://www.weibo.com/3911558393/KfCfuuKXr
https://www.weibo.com/3911558393/Iz0g6eVdb
https://www.weibo.com/3911558393/In3Dj6Otv
https://www.weibo.com/3911558393/KrtSSgSAb
https://www.weibo.com/3911558393/I87oOhZvc

周杰伦_bot

他的受欢迎前10的微博地址:

https://www.weibo.com/277449440/K8pNcgJ1O
https://www.weibo.com/277449440/IE1PwomY3
https://www.weibo.com/277449440/IEHFVfQeK
https://www.weibo.com/277449440/Iu4e7l7ai
https://www.weibo.com/277449440/IFjNiaphj
https://www.weibo.com/277449440/J8yUa5fhJ
https://www.weibo.com/277449440/J9b8HpAlF
https://www.weibo.com/277449440/IDbnxj1Ox
https://www.weibo.com/277449440/KtVhF19r6
https://www.weibo.com/277449440/IFTnIsYfH

他的微博图片下载下来有3个多G。

当然如果你只是单纯想下载微博图片和视频可以用这个工具下载(在公众号后台对话框回复 微博 获取),同样输入微博uid和cookie就能下载,也是保存在weibo目录。

请输入微博uid:1744395855
输入微博cookie:
1/1 Fri Oct 15 19:13:28 2021
歌手李健 1744395855
finish analysis 647/707(#30)
practically scan 647 weibos, get 206 resources
all tasks done 206/206(100%)
success 206, failure 0, total 206
------------------------------
下载完成

只是想备份微博图文可以使用这个Chrome扩展 https://chrome.google.com/webstore/detail/octoman%E5%BE%AE%E5%8D%9A%E5%A4%87%E4%BB%BD/pojodomdlpobompicdllljgiomnfpmho , 安装Chrome扩展方法见我之前文章上不了谷歌如何安装 Chrome 扩展? ,备份的html效果:


最后说下根据图片找微博博主,如果是有无水印的图片地址可以根据之前文章想方便快捷的分享/收藏图片?试试免费好用的微博/b站图床 找到,如果只是保存的微博图片只能借助搜图了玩转谷歌/百度搜索如何通过电影截图找到电影我已经帮助好几位小伙伴找到博主了,如果你有需要可以联系我。

如果文章对你有帮助还请 点赞/在看/分享 三连支持下, 感谢各位!

公众号苏生不惑

扫描二维码关注或搜索微信susheng_buhuo


您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存