All Projects → taizan-hokuto → Pytchat

taizan-hokuto / Pytchat

Licence: mit
library for youtube chat.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Pytchat

Youtube Desvendando Css Grid
Project created for the video about CSS Grid
Stars: ✭ 116 (-9.37%)
Mutual labels:  youtube
Recfluence
An analysis of YouTube's political influence through recommendations.
Stars: ✭ 121 (-5.47%)
Mutual labels:  youtube
Android Youtubemp3
Download videos as mp3 directly from Youtube Android App
Stars: ✭ 124 (-3.12%)
Mutual labels:  youtube
Youtube player
A flutter plugin to play Youtube Videos without API Key in range of Quality(144p, 240p,360p,480p,720p and 1080p).
Stars: ✭ 118 (-7.81%)
Mutual labels:  youtube
Alltomp3
Node module to download and convert in MP3 with tags an online video
Stars: ✭ 120 (-6.25%)
Mutual labels:  youtube
Youtube Scrape
Scrape YouTube searches (API)
Stars: ✭ 122 (-4.69%)
Mutual labels:  youtube
Youtube download
Packet download videos from youtube
Stars: ✭ 114 (-10.94%)
Mutual labels:  youtube
Yt Ad Autoskipper
A browser extension that automates skipping ad on Youtube. This is not an ad blocker, it just automates the process of clicking on the "Skip Ad" button on Youtube.
Stars: ✭ 127 (-0.78%)
Mutual labels:  youtube
Youtubedownloader
Downloads videos and playlists from YouTube
Stars: ✭ 2,202 (+1620.31%)
Mutual labels:  youtube
Youtube
Download Youtube Video in Golang
Stars: ✭ 1,958 (+1429.69%)
Mutual labels:  youtube
Awesome Gsoc Roadmap
A comprehensive curated list of available GSOC 2020 Guides, Write-ups and Tutorials 🤠 🏆
Stars: ✭ 119 (-7.03%)
Mutual labels:  youtube
Youtube Comment Suite
Download YouTube comments from numerous videos, playlists, and channels for archiving, general search, and showing activity.
Stars: ✭ 120 (-6.25%)
Mutual labels:  youtube
Youtube desktop
The desktop Youtube Application built using Electron. (In development)
Stars: ✭ 123 (-3.91%)
Mutual labels:  youtube
Audiojack Gui
🎧 A YouTube-to-MP3 converter that automatically finds and adds ID3 tags to downloaded MP3 files.
Stars: ✭ 116 (-9.37%)
Mutual labels:  youtube
Mediaunlock test
流媒体解锁检测
Stars: ✭ 121 (-5.47%)
Mutual labels:  youtube
Ytmdl
A simple app to get songs from YouTube in mp3 format with artist name, album name etc from sources like iTunes, Spotify, LastFM, Deezer, Gaana etc.
Stars: ✭ 2,070 (+1517.19%)
Mutual labels:  youtube
Alltube
Web GUI for youtube-dl
Stars: ✭ 1,925 (+1403.91%)
Mutual labels:  youtube
Pipcorn
🍿 Watch YouTube videos on your Mac via CLI
Stars: ✭ 128 (+0%)
Mutual labels:  youtube
Youtube2audio
Desktop application to download YouTube videos as annotated MP3 or MP4 files
Stars: ✭ 128 (+0%)
Mutual labels:  youtube
Youtubeexplode
The ultimate dirty YouTube library
Stars: ✭ 1,775 (+1286.72%)
Mutual labels:  youtube

pytchat

pytchat is a python library for fetching youtube live chat.




Description

pytchat is a python library for fetching youtube live chat without using Selenium or BeautifulSoup.

Other features:

  • Customizable chat data processors including youtube api compatible one.
  • Available on asyncio context.
  • Quick fetching of initial chat data by generating continuation params instead of web scraping.

For more detailed information, see wiki.
wiki (Japanese)

Install

pip install pytchat

Examples

Fetch chat data (see wiki)

import pytchat
chat = pytchat.create(video_id="uIx8l2xlYVY")
while chat.is_alive():
    for c in chat.get().sync_items():
        print(f"{c.datetime} [{c.author.name}]- {c.message}")

Output JSON format string (feature of DefaultProcessor)

import pytchat
import time

chat = pytchat.create(video_id="uIx8l2xlYVY")
while chat.is_alive():
    print(chat.get().json())
    time.sleep(5)
    '''
    # Each chat item can also be output in JSON format.
    for c in chat.get().items:
        print(c.json())
    '''     

other

Structure of Default Processor

Each item can be got with sync_items() function.

name type remarks
type str "superChat","textMessage","superSticker","newSponsor"
id str
message str emojis are represented by ":(shortcut text):"
messageEx str list of message texts and emoji dicts(id, txt, url).
timestamp int unixtime milliseconds
datetime str e.g. "2019-10-10 12:34:56"
elapsedTime str elapsed time. (e.g. "1:02:27") *Replay Only.
amountValue float e.g. 1,234.0
amountString str e.g. "$ 1,234"
currency str ISO 4217 currency codes (e.g. "USD")
bgColor int RGB Int
author object see below

Structure of author object.

name type remarks
name str
channelId str *chatter's channel ID.
channelUrl str
imageUrl str
badgeUrl str
isVerified bool
isChatOwner bool
isChatSponsor bool
isChatModerator bool

Licence

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].