Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 1d80dce

Browse files
committed
Merge branch 'hotfix/dat'
2 parents 4db9486 + 8b18f44 commit 1d80dce

91 files changed

Lines changed: 58582 additions & 61097 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Pipfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
httpx = {extras = ["http2"], version = "*"}
8-
protobuf = "==3.14.0"
9-
pytz = "*"
10-
urllib3 = "*"
7+
httpx = {extras = ["http2"], version = "0.16.1"}
118

129
[dev-packages]
1310
pytest-mock = "*"
1411
pytest-httpx = "*"
1512
wheel = "*"
1613
twine = "*"
17-
18-
[requires]
19-
python_version = ">=3.6"

Pipfile.lock

Lines changed: 22 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@ pytchat
22
=======
33

44
pytchat is a python library for fetching youtube live chat.
5-
6-
7-
## Note (2020-11-19)
8-
### Since the YouTube specification has changed, this program does not work well.
9-
### Whether to fix it or not is undecided.
5+
106

117
<br><br><br>
12-
13-
14-
15-
168
## Description
179
pytchat is a python library for fetching youtube live chat
1810
without using Selenium or BeautifulSoup.
@@ -32,23 +24,6 @@ pip install pytchat
3224
```
3325
## Examples
3426

35-
### CLI
36-
37-
+ One-liner command.
38-
39-
+ Save chat data to html with embedded custom emojis.
40-
41-
+ Show chat stream (--echo option).
42-
43-
```bash
44-
$ pytchat -v uIx8l2xlYVY -o "c:/temp/"
45-
# options:
46-
# -v : Video ID or URL that includes ID
47-
# -o : output directory (default path: './')
48-
# --echo : Show chats.
49-
# saved filename is [video_id].html
50-
```
51-
5227

5328
### Fetch chat data (see [wiki](https://github.com/taizan-hokuto/pytchat/wiki/PytchatCore))
5429
```python
@@ -84,8 +59,6 @@ while chat.is_alive():
8459

8560
+ YT API compatible chat processor ([CompatibleProcessor](https://github.com/taizan-hokuto/pytchat/wiki/CompatibleProcessor))
8661

87-
+ Extract archived chat data ([Extractor](https://github.com/taizan-hokuto/pytchat/wiki/Extractor))
88-
8962

9063
## Structure of Default Processor
9164
Each item can be got with `sync_items()` function.

pytchat/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,19 @@
2626
)
2727

2828
from .api import (
29-
cli,
3029
config,
3130
LiveChat,
3231
LiveChatAsync,
3332
ChatProcessor,
3433
CompatibleProcessor,
3534
DummyProcessor,
3635
DefaultProcessor,
37-
Extractor,
3836
HTMLArchiver,
3937
TSVArchiver,
4038
JsonfileArchiver,
4139
SimpleDisplayProcessor,
4240
SpeedCalculator,
4341
SuperchatCalculator,
44-
VideoInfo,
4542
create
4643
)
4744
# flake8: noqa

pytchat/api.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from . import cli
21
from . import config
32
from .core import create
43
from .core_multithread.livechat import LiveChat
@@ -13,26 +12,22 @@
1312
from .processors.simple_display_processor import SimpleDisplayProcessor
1413
from .processors.speed.calculator import SpeedCalculator
1514
from .processors.superchat.calculator import SuperchatCalculator
16-
from .tool.extract.extractor import Extractor
17-
from .tool.videoinfo import VideoInfo
15+
1816

1917
__all__ = [
20-
cli,
2118
config,
2219
LiveChat,
2320
LiveChatAsync,
2421
ChatProcessor,
2522
CompatibleProcessor,
2623
DummyProcessor,
2724
DefaultProcessor,
28-
Extractor,
2925
HTMLArchiver,
3026
TSVArchiver,
3127
JsonfileArchiver,
3228
SimpleDisplayProcessor,
3329
SpeedCalculator,
3430
SuperchatCalculator,
35-
VideoInfo,
3631
create
3732
]
3833

pytchat/cli/__init__.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)