Skip to main content

Parse messages from discord server exports into csv files

Project description

Dappi

PyPI version Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Scrape messages from discord server dumps and parse them into a csv file. More features to come later though

Usage

  1. Get an html dump from the server you are trying to parse messages from using...

  2. Install dappi

    • pip3 install dappi

Use As CLI

  1. 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

  1. Use dappi as a library
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dappi-1.0.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

dappi-1.0.8-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file dappi-1.0.8.tar.gz.

File metadata

  • Download URL: dappi-1.0.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for dappi-1.0.8.tar.gz
Algorithm Hash digest
SHA256 2135c4fda32dd1d0ac938ccef024b462a5f9eb57a55c9e462a7834c533589def
MD5 ac88dab540c1be8a97ca82aa524179e5
BLAKE2b-256 2669ef13f4c82e664c6390101600178f2e9a348f7ee53437c701b18f2d326d92

See more details on using hashes here.

File details

Details for the file dappi-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: dappi-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for dappi-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 af2b5469defa3009668d0dc0aaae9552b0a680b642d3750495ad9304c171a220
MD5 638bbad106f2155a773a41f4e89302f6
BLAKE2b-256 1e2a31630f931b8e48ba9f16686dab4ea029630f28f6ecc86df26965a52db774

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page