Update README

This commit is contained in:
55448286+taizan-hokuto@users.noreply.github.com
2019-11-03 09:42:41 +09:00
parent 01dc1709c4
commit 48f07bdf34

View File

@@ -5,7 +5,7 @@ pytchat
pytchat is a python library for fetching youtube live chat. pytchat is a python library for fetching youtube live chat.
## Description ## 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. without using youtube api, Selenium or BeautifulSoup.
Other features: Other features:
@@ -20,6 +20,7 @@ pip install pytchat
``` ```
## Examples ## Examples
### on-demand mode
```python ```python
from pytchat import LiveChat from pytchat import LiveChat
@@ -31,7 +32,7 @@ while chat.is_alive():
data.tick() data.tick()
``` ```
###callback mode ### callback mode
```python ```python
from pytchat import LiveChat from pytchat import LiveChat
@@ -46,7 +47,7 @@ def func(chatdata):
chat.tick() chat.tick()
``` ```
###asyncio context: ### asyncio context:
```python ```python
from pytchat import LiveChatAsync from pytchat import LiveChatAsync
import asyncio import asyncio
@@ -67,7 +68,7 @@ loop.run_until_complete(main())
``` ```
###yt api compatible processor: ### yt api compatible processor:
```python ```python
from pytchat import LiveChat, CompatibleProcessor from pytchat import LiveChat, CompatibleProcessor
@@ -189,6 +190,7 @@ Structure of author object.
<td></td> <td></td>
</tr> </tr>
</table> </table>
## Licence ## Licence
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)