对新浪微博音乐相关微博分析, 形成摇滚、民谣、嘻哈、电子、流行等音乐流派热点
将某个流派下的所有用户的最新微博收集, 并按热度排序
将某个流派下的所有用户的最新微博收集, 生成热点, 并按热度排序
将某各流派下的所有用户的最新视频收集,并按浏览量排序
GET
/api/v1/posts
{
"result": {
"rock": [
{
"id": 1,
"user_id": 1,
"user_name": "痛仰乐队",
"time": "2020-01-24 00:00:00",
"content": "",
"share_cnt": 1,
"comment_cnt": 1,
"like_cnt": 1,
"link": "",
"score": 7000,
"image_path": "1.png"
},
{
"id": 2,
"user_id": 2,
"user_name": "老王乐队",
"time": "2020-01-25 00:00:00",
"content": "",
"share_cnt": 2,
"comment_cnt": 2,
"like_cnt": 2,
"link": "",
"score": 348680,
"image_path": "2.png"
}
]
},
"status": "OK"
}
GET
/api/v1/focuses
{
"result": {
"rock": [
{
"title": "#老王乐队发新歌#",
"description": "",
"recent_read": 100,
"read_cnt": 1,
"discuss_cnt": 1,
"member_cnt": 1,
"link": "",
"related_users": [],
"score": 100
},
{
"title": "#新裤子乐队巡演#",
"description": "",
"recent_read": 200,
"read_cnt": 2,
"discuss_cnt": 2,
"member_cnt": 2,
"link": "",
"related_users": [],
"score": 200
}
]
},
"status": "OK"
}
GET
/api/v1/videos
{
"result": {
"rock": [
{
"id": "4481642518216720",
"post_id": 11111111111,
"user_id": 1757519727,
"user_name": "彭磊新裤子",
"time": "2020-03-12 13:30:14",
"text": "一把吉他,一个和弦。 ",
"cover_path": "https://wx3.sinaimg.cn/orj480/68c19f6fly1gcr31qwc9gj20u01hc76q.jpg",
"url": "http://f.video.weibocdn.com/TJMjedtSlx07BDH1vRWM01041201N1pV0E010.mp4?label=mp4_720p&template=720x1280.25.0&trans_finger=11ccc9c970f47cffd9369c72510b3033&Expires=1584172423&ssig=OP2VK1C1al&KID=unistore,video",
"view_cnt": 160400,
"display_view_cnt": "16万次观看"
}
]
},
"status": "OK"
}
- 配置环境变量
ROLE
, 选择启动online
或者offline
- 进入
admin
目录, 执行sh start.sh
- 构建镜像, 进入
docker
目录, 执行sh build.sh
- 启动容器, 进入项目根目录, 执行
docker-compose up -d