Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evil0ctal/tiktok-live-room-scraper

TikTok Live Room Scraper(TikTok 直播间爬虫)
https://github.com/evil0ctal/tiktok-live-room-scraper

scraper tiktok tiktok-api tiktok-live tiktok-livestream tiktok-scraper

Last synced: about 1 month ago
JSON representation

TikTok Live Room Scraper(TikTok 直播间爬虫)

Awesome Lists containing this project

README

        

# TikTok-Live-Room-Scraper

## 1-Install dependencies
`pip install -r requirements.txt`

## 2-Run

- If you want to run a web program: `python3 web.py`

## 3-Call the encapsulated class

```python
TikTokLive = TikTokLive()

url = input("Please enter the TikTok live room sharing link:")

# Get live broadcast room information
live_room_info = TikTokLive.get_live_room_info(url)

# Get the live broadcast room ID
room_id = TikTokLive.get_live_room_id(live_room_info)

# Get anchor ID
anchor_id = TikTokLive.get_live_anchor_id(live_room_info)

room_ranking = TikTokLive.get_live_room_ranking(anchor_id, room_id)

print(room_ranking)

```

# 简体中文 Zh_CN

# TikTok-Live-Room-Scraper

## 1-安装依赖
`pip install -r requirements.txt`

## 2-运行

- 如果要运行Web程序: `python3 web.py`

## 3-调用已封装的类

```python
TikTokLive = TikTokLive()

url = input("请输入TikTok直播间分享链接:")

# 获取直播间信息
live_room_info = TikTokLive.get_live_room_info(url)

# 获取直播间ID
room_id = TikTokLive.get_live_room_id(live_room_info)

# 获取主播ID
anchor_id = TikTokLive.get_live_anchor_id(live_room_info)

room_ranking = TikTokLive.get_live_room_ranking(anchor_id, room_id)

print(room_ranking)

```