From 275e1a7aa8bf48a6757ba431db59f92b121e4202 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 18:01:00 +0900 Subject: [PATCH 1/7] Fix comment typo --- pytchat/core_async/buffer.py | 2 +- pytchat/core_async/livechat.py | 2 +- pytchat/core_multithread/buffer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytchat/core_async/buffer.py b/pytchat/core_async/buffer.py index 7510f19..5abdc7a 100644 --- a/pytchat/core_async/buffer.py +++ b/pytchat/core_async/buffer.py @@ -2,7 +2,7 @@ import asyncio class Buffer(asyncio.Queue): ''' - チャットデータを格納するバッファの役割を持つLIFOキュー + チャットデータを格納するバッファの役割を持つFIFOキュー Parameter --------- diff --git a/pytchat/core_async/livechat.py b/pytchat/core_async/livechat.py index 93d9fcc..9388442 100644 --- a/pytchat/core_async/livechat.py +++ b/pytchat/core_async/livechat.py @@ -1,4 +1,4 @@ -import aiohttp, asyncio, async_timeout +import aiohttp, asyncio import datetime import json import random diff --git a/pytchat/core_multithread/buffer.py b/pytchat/core_multithread/buffer.py index 1178839..c1ef2fe 100644 --- a/pytchat/core_multithread/buffer.py +++ b/pytchat/core_multithread/buffer.py @@ -3,7 +3,7 @@ import queue class Buffer(queue.Queue): ''' - チャットデータを格納するバッファの役割を持つLIFOキュー + チャットデータを格納するバッファの役割を持つFIFOキュー Parameter --------- From c5969119016e49bd0e8855a093f940373da695c0 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 18:30:44 +0900 Subject: [PATCH 2/7] Add DEMO graphic --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cadbdc9..06e32f4 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ instead of web scraping. ```python pip install pytchat ``` +## Demo +![demo](https://taizan-hokuto.github.io/statics/demo.gif "demo") ## Examples ### on-demand mode From e9e16b2bccafa220a993c3f832f237aa766ece2e Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 19:02:40 +0900 Subject: [PATCH 3/7] Export ChatProcessor --- pytchat/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytchat/api.py b/pytchat/api.py index beeec65..516a416 100644 --- a/pytchat/api.py +++ b/pytchat/api.py @@ -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 From cb505074f7ad2b7c77904798dcf150b3b12c4e3d Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 19:04:02 +0900 Subject: [PATCH 4/7] Modify comment --- pytchat/processors/chat_processor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pytchat/processors/chat_processor.py b/pytchat/processors/chat_processor.py index 8f79629..2b94221 100644 --- a/pytchat/processors/chat_processor.py +++ b/pytchat/processors/chat_processor.py @@ -5,11 +5,12 @@ class ChatProcessor: ''' def process(self, chat_components: list): ''' - チャットデータの加工を表すインターフェース - Listenerから呼び出される。 + チャットデータの加工を表すインターフェース。 + LiveChatオブジェクトから呼び出される。 + Parameter ---------- - chat_components: list + chat_components: [LIST:component] component : dict { "video_id" : str 動画ID From 0a8cd83d419aa971493df9409d011035cd22b242 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 19:38:09 +0900 Subject: [PATCH 5/7] Update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 06e32f4..0d31592 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ 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 From 89ddc0551f49500002f55777d773b4f90ca8e1c3 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 19:41:15 +0900 Subject: [PATCH 6/7] Export ChatProcessor --- pytchat/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytchat/__init__.py b/pytchat/__init__.py index e5e069a..3777299 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -13,6 +13,7 @@ __all__ = ["core_async","core_multithread","processors"] from .api import ( LiveChat, LiveChatAsync, + ChatProcessor, CompatibleProcessor, SimpleDisplayProcessor, JsonfileArchiveProcessor From 0676ee5c8c627bbbd7ff3990c1532a6efdae9c03 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 19:50:22 +0900 Subject: [PATCH 7/7] Increment version --- pytchat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytchat/__init__.py b/pytchat/__init__.py index 3777299..b16080c 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -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'