Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44dc5ff1c3 | ||
|
|
0676ee5c8c | ||
|
|
89ddc0551f | ||
|
|
0a8cd83d41 | ||
|
|
cb505074f7 | ||
|
|
e9e16b2bcc | ||
|
|
c596911901 | ||
|
|
275e1a7aa8 |
@@ -13,10 +13,14 @@ Other features:
|
||||
+ Quick fetching of initial chat data by generating continuation params
|
||||
instead of web scraping.
|
||||
|
||||
For more detailed information, see [wiki](https://github.com/taizan-hokuto/pytchat/wiki)
|
||||
|
||||
## Install
|
||||
```python
|
||||
pip install pytchat
|
||||
```
|
||||
## Demo
|
||||

|
||||
|
||||
## Examples
|
||||
### on-demand mode
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
pytchat is a python library for fetching youtube live chat.
|
||||
"""
|
||||
__copyright__ = 'Copyright (C) 2019 taizan-hokuto'
|
||||
__version__ = '0.0.2.1'
|
||||
__version__ = '0.0.2.2'
|
||||
__license__ = 'MIT'
|
||||
__author__ = 'taizan-hokuto'
|
||||
__author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'
|
||||
@@ -13,6 +13,7 @@ __all__ = ["core_async","core_multithread","processors"]
|
||||
from .api import (
|
||||
LiveChat,
|
||||
LiveChatAsync,
|
||||
ChatProcessor,
|
||||
CompatibleProcessor,
|
||||
SimpleDisplayProcessor,
|
||||
JsonfileArchiveProcessor
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from .core_async.livechat import LiveChatAsync
|
||||
from .core_multithread.livechat import LiveChat
|
||||
from .processors.chat_processor import ChatProcessor
|
||||
from .processors.default.processor import DefaultProcessor
|
||||
from .processors.compatible.processor import CompatibleProcessor
|
||||
from .processors.simple_display_processor import SimpleDisplayProcessor
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import asyncio
|
||||
class Buffer(asyncio.Queue):
|
||||
'''
|
||||
チャットデータを格納するバッファの役割を持つLIFOキュー
|
||||
チャットデータを格納するバッファの役割を持つFIFOキュー
|
||||
|
||||
Parameter
|
||||
---------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import aiohttp, asyncio, async_timeout
|
||||
import aiohttp, asyncio
|
||||
import datetime
|
||||
import json
|
||||
import random
|
||||
|
||||
@@ -3,7 +3,7 @@ import queue
|
||||
|
||||
class Buffer(queue.Queue):
|
||||
'''
|
||||
チャットデータを格納するバッファの役割を持つLIFOキュー
|
||||
チャットデータを格納するバッファの役割を持つFIFOキュー
|
||||
|
||||
Parameter
|
||||
---------
|
||||
|
||||
@@ -5,11 +5,12 @@ class ChatProcessor:
|
||||
'''
|
||||
def process(self, chat_components: list):
|
||||
'''
|
||||
チャットデータの加工を表すインターフェース
|
||||
Listenerから呼び出される。
|
||||
チャットデータの加工を表すインターフェース。
|
||||
LiveChatオブジェクトから呼び出される。
|
||||
|
||||
Parameter
|
||||
----------
|
||||
chat_components: list<component>
|
||||
chat_components: [LIST:component]
|
||||
component : dict {
|
||||
"video_id" : str
|
||||
動画ID
|
||||
|
||||
Reference in New Issue
Block a user