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

Commit

Permalink
Merge branch 'hotfix/dat'
Browse files Browse the repository at this point in the history
  • Loading branch information
taizan-hokuto committed Dec 5, 2020
2 parents 4db9486 + 8b18f44 commit 1d80dce
Show file tree
Hide file tree
Showing 91 changed files with 58,582 additions and 61,097 deletions.
8 changes: 1 addition & 7 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@ verify_ssl = true
name = "pypi"

[packages]
httpx = {extras = ["http2"], version = "*"}
protobuf = "==3.14.0"
pytz = "*"
urllib3 = "*"
httpx = {extras = ["http2"], version = "0.16.1"}

[dev-packages]
pytest-mock = "*"
pytest-httpx = "*"
wheel = "*"
twine = "*"

[requires]
python_version = ">=3.6"
94 changes: 22 additions & 72 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 1 addition & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@ pytchat
=======

pytchat is a python library for fetching youtube live chat.


## Note (2020-11-19)
### Since the YouTube specification has changed, this program does not work well.
### Whether to fix it or not is undecided.


<br><br><br>




## Description
pytchat is a python library for fetching youtube live chat
without using Selenium or BeautifulSoup.
Expand All @@ -32,23 +24,6 @@ pip install pytchat
```
## Examples

### CLI

+ One-liner command.

+ Save chat data to html with embedded custom emojis.

+ Show chat stream (--echo option).

```bash
$ pytchat -v uIx8l2xlYVY -o "c:/temp/"
# options:
# -v : Video ID or URL that includes ID
# -o : output directory (default path: './')
# --echo : Show chats.
# saved filename is [video_id].html
```


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

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

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


## Structure of Default Processor
Each item can be got with `sync_items()` function.
Expand Down
3 changes: 0 additions & 3 deletions pytchat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,19 @@
)

from .api import (
cli,
config,
LiveChat,
LiveChatAsync,
ChatProcessor,
CompatibleProcessor,
DummyProcessor,
DefaultProcessor,
Extractor,
HTMLArchiver,
TSVArchiver,
JsonfileArchiver,
SimpleDisplayProcessor,
SpeedCalculator,
SuperchatCalculator,
VideoInfo,
create
)
# flake8: noqa
7 changes: 1 addition & 6 deletions pytchat/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from . import cli
from . import config
from .core import create
from .core_multithread.livechat import LiveChat
Expand All @@ -13,26 +12,22 @@
from .processors.simple_display_processor import SimpleDisplayProcessor
from .processors.speed.calculator import SpeedCalculator
from .processors.superchat.calculator import SuperchatCalculator
from .tool.extract.extractor import Extractor
from .tool.videoinfo import VideoInfo


__all__ = [
cli,
config,
LiveChat,
LiveChatAsync,
ChatProcessor,
CompatibleProcessor,
DummyProcessor,
DefaultProcessor,
Extractor,
HTMLArchiver,
TSVArchiver,
JsonfileArchiver,
SimpleDisplayProcessor,
SpeedCalculator,
SuperchatCalculator,
VideoInfo,
create
]

Expand Down
71 changes: 0 additions & 71 deletions pytchat/cli/__init__.py

This file was deleted.

Loading

0 comments on commit 1d80dce

Please sign in to comment.