Giter Club home page Giter Club logo

tiktok-live-room-scraper's Introduction

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

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-调用已封装的类

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)

tiktok-live-room-scraper's People

Contributors

evil0ctal avatar

Stargazers

 avatar  avatar Quan Zhou avatar watchdb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.