关于大数据:抖音数据采集SDK

37次阅读

共计 1692 个字符,预计需要花费 5 分钟才能阅读完成。

接口参数、返回示例请参考文档:抖音 api

Github 仓库:DouyinSDK

0. 初始化

from douyin import AwemeSDK

token = 'xxxxxxxx'
host  = 'http://xxxxx.xx.xx'
sdk   = AwemeSDK(token,host)

1. 用户详情


result = sdk.GetUserInfo('100000004548')

2. 用户作品


result = sdk.GetUserPosts('100000004548')

3. 用户喜爱视频


result = sdk.GetUserFavourites('100000004548')

4. 用户商品橱窗


result = sdk.GetUserPromotions('100000004548')

5. 视频评论


result = sdk.GetVideoComments('6785429036362386696')

28. 视频详情


result = sdk.GetVideoDetail(6849103450475711752)

6. 视频带货信息


result = sdk.GetVideoPromotions('6785429036362386696')

7. 视频评论的子评论


result = sdk.GetVideoCommentReplies('6785429036362386696','6775738616267554829')

8. 话题详情


result = sdk.GetChallengeDetail('1671619888543757')

9. 获取话题(challenge)下的视频


result = sdk.GetChallengeVideos('1671619888543757')

10. 地点详情


result = sdk.GetPoiDetail('6666714767266187271')

11. 获取地点(poi)下的视频


result = sdk.GetPoiVideos('6666714767266187271')

12. 带货视频举荐


result = sdk.GetPromotionVideosFeed()

13. 带货商品 promotion 详情


result = sdk.GetPromotionInfo('60772262244900')

14. 同款商品带货视频举荐


result = sdk.GetPromotionSameVideos('60772262244900')

15. 获取直播间弹幕 / 进入直播间观众 / 刷礼物 / 关注主播 信息


result = sdk.GetLiveRoomChats('6843198199583378191')

16. 获取直播间带货商品信息


result = sdk.GetLiveRoomPromotions('6843198199583378191')

17. 获取直播间信息


result = sdk.GetLiveRoomInfo('6843198199583378191')

18. 查问直播间是否开播


result = sdk.GetLiveRoomStatus('6843198199583378191')

19. 获取直播用户信息


result = sdk.GetUserLiveInfo('6843198199583378191')

20. 实时明星爱 DOU 榜


result = sdk.RealStarBoard()

21. 实时热点榜


result = sdk.RealHotBoard()

22. 实时好物榜


result = sdk.RealGoodsBoard()

23. 最热视频榜单


result = sdk.RealHotVideos()

24. 热门话题举荐


result = sdk.RealHotChallenges()

25. 实时品牌榜


result = sdk.RealBrandBoard(7)

26. 品牌类别接口


result = sdk.BrandCategories()

27. 热榜品牌详情


result = sdk.BrandDetail(2,9117)

29. 关键词搜寻用户


result = sdk.SearchUsers('美女')

30. 关键词搜寻视频


result = sdk.SearchVideos('美女')

正文完
 0