dappi-1.0.8
توضیحات
Parse messages from discord server exports into csv files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dappi-1.0.8 |
| نام | dappi |
| نسخه کتابخانه | 1.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrew Pynch |
| ایمیل نویسنده | andrewpynchbusiness@gmail.com |
| آدرس صفحه اصلی | https://github.com/Andrew-Pynch/dappi |
| آدرس اینترنتی | https://pypi.org/project/dappi/ |
| مجوز | MIT |
# Dappi
[](https://badge.fury.io/py/dappi)
[](https://www.repostatus.org/#active)
Scrape messages from discord server dumps and parse them into a csv file. More features to come later though
# Usage
0. Get an html dump from the server you are trying to parse messages from using...
- ### [Discord Chat Exporter](https://github.com/Tyrrrz/DiscordChatExporter)
1. Install dappi
- ```pip3 install dappi```
## Use As CLI
2. Run the CLI with command line args
- ```dappi -i {path_to_discord_html_export} -o {path_to_csv_output_directory/file_name.csv} -s {boolean | "Sets a flag to show messages in the terminal while they are being parsed"}```
- Note: __file_name.csv__, doesn't need to exist, but the __"path_to_csv_output_directory"__ does!
## Use As Library
2. Use dappi as a library
```py
from dappi import parser
dappi_parser = parser.Parser(
'frostbite.html', # Html input
'data/messages.csv', # Output Directory
True # Show messages while writing
)
dappi_parser.parse_all_messages_into_single_file()
exit
```
# TODO
- Automated tests
- Generate statistics and graphs of user activity from parsed messages?
- Frequency of user messages?
- Sentiment analysis of user messages?
- Other interesting metrics?
- Expose more functionality, I.E Write better docs
نیازمندی
| مقدار | نام |
|---|---|
| - | beautifulsoup4 |
نحوه نصب
نصب پکیج whl dappi-1.0.8:
pip install dappi-1.0.8.whl
نصب پکیج tar.gz dappi-1.0.8:
pip install dappi-1.0.8.tar.gz