Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 直播间爬虫)
- Host: GitHub
- URL: https://github.com/evil0ctal/tiktok-live-room-scraper
- Owner: Evil0ctal
- Created: 2023-09-09T11:59:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-03T12:06:03.000Z (10 months ago)
- Last Synced: 2024-02-03T13:23:57.238Z (10 months ago)
- Topics: scraper, tiktok, tiktok-api, tiktok-live, tiktok-livestream, tiktok-scraper
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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)
```