From 366d75c2bbdf67dd022ad89e7567c94af265494f Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Mon, 13 Jul 2020 01:44:49 +0900 Subject: [PATCH] Update README --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 694ad8a..50a26fe 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ pip install pytchat ### CLI One-liner command. -Save chat data to html. +Save chat data to html, with embedded custom emojis. ```bash $ pytchat -v ZJ6Q4U_Vg6s -o "c:/temp/" @@ -148,6 +148,20 @@ def main(): if __name__ == '__main__': main() ``` +### Extract archived chat data as [HTML](https://github.com/taizan-hokuto/pytchat/wiki/HTMLArchiver) or [tab separated values](https://github.com/taizan-hokuto/pytchat/wiki/TSVArchiver). +```python +from pytchat import HTMLArchiver, Extractor + +video_id = "*******" +ex = Extractor( + video_id, + div=10, + processor=HTMLArchiver("c:/test.html") +) + +ex.extract() +print("finished.") +``` ## Structure of Default Processor Each item can be got with `items` function. @@ -175,7 +189,7 @@ Each item can be got with `items` function.