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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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