From 01dc1709c427718d5f46b75fff3c701a4cabe14d Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 09:39:58 +0900 Subject: [PATCH 1/3] Update README --- README.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index eebcc8a..d2190c0 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ Other features: instead of web scraping. ## Install -``` +```python pip install pytchat ``` ## Examples -``` +```python from pytchat import LiveChat chat = LiveChat("G1w62uEMZ74") @@ -31,12 +31,13 @@ while chat.is_alive(): data.tick() ``` -callback mode -``` +###callback mode +```python from pytchat import LiveChat chat = LiveChat("G1w62uEMZ74", callback = func) while chat.is_alive(): + #other background operation here. time.sleep(3) def func(chatdata): @@ -45,8 +46,8 @@ def func(chatdata): chat.tick() ``` -asyncio context: -``` +###asyncio context: +```python from pytchat import LiveChatAsync import asyncio @@ -66,8 +67,8 @@ loop.run_until_complete(main()) ``` -yt api compatible processor: -``` +###yt api compatible processor: +```python from pytchat import LiveChat, CompatibleProcessor chat = LiveChat("G1w62uEMZ74", @@ -194,4 +195,6 @@ Structure of author object. ## Author -[taizan-hokuto](https://github.com/taizan-hokuto) \ No newline at end of file +[taizan-hokuto](https://github.com/taizan-hokuto) + +[twitter:@taizan205](https://twitter.com/taizan205) \ No newline at end of file From 48f07bdf3433ea58d9806c9a5d66118d3a26d447 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 09:42:41 +0900 Subject: [PATCH 2/3] Update README --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d2190c0..f0fd81e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ pytchat pytchat is a python library for fetching youtube live chat. ## Description -pytchat is a python library for fetching youtube live chat. +pytchat is a python library for fetching youtube live chat without using youtube api, Selenium or BeautifulSoup. Other features: @@ -20,6 +20,7 @@ pip install pytchat ``` ## Examples +### on-demand mode ```python from pytchat import LiveChat @@ -31,7 +32,7 @@ while chat.is_alive(): data.tick() ``` -###callback mode +### callback mode ```python from pytchat import LiveChat @@ -46,7 +47,7 @@ def func(chatdata): chat.tick() ``` -###asyncio context: +### asyncio context: ```python from pytchat import LiveChatAsync import asyncio @@ -67,7 +68,7 @@ loop.run_until_complete(main()) ``` -###yt api compatible processor: +### yt api compatible processor: ```python from pytchat import LiveChat, CompatibleProcessor @@ -189,6 +190,7 @@ Structure of author object. + ## Licence [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) From af6b75669b5e3847420e11c1d40efa3a8b473ac1 Mon Sep 17 00:00:00 2001 From: "55448286+taizan-hokuto@users.noreply.github.com" Date: Sun, 3 Nov 2019 10:58:49 +0900 Subject: [PATCH 3/3] Increment version --- README.md | 7 ++++++- pytchat/__init__.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0fd81e..c023500 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - pytchat ======= @@ -35,6 +34,7 @@ while chat.is_alive(): ### callback mode ```python from pytchat import LiveChat +import time chat = LiveChat("G1w62uEMZ74", callback = func) while chat.is_alive(): @@ -115,6 +115,11 @@ Structure of each item which got from items() function. int unixtime milliseconds + + datetime + str + + amountValue float diff --git a/pytchat/__init__.py b/pytchat/__init__.py index 3fdf5fe..7f26001 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.1.5' +__version__ = '0.0.1.6' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'