{"id":21214511,"url":"https://github.com/slice/discord-package-exporter","last_synced_at":"2026-05-20T09:31:46.013Z","repository":{"id":83250185,"uuid":"138372707","full_name":"slice/discord-package-exporter","owner":"slice","description":"Postgres exporter for Discord data packages","archived":false,"fork":false,"pushed_at":"2018-06-23T07:05:03.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T00:22:18.205Z","etag":null,"topics":["discord","gdpr"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-23T04:59:58.000Z","updated_at":"2018-09-03T07:07:09.000Z","dependencies_parsed_at":"2023-03-12T17:44:54.179Z","dependency_job_id":null,"html_url":"https://github.com/slice/discord-package-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slice/discord-package-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fdiscord-package-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fdiscord-package-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fdiscord-package-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fdiscord-package-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slice","download_url":"https://codeload.github.com/slice/discord-package-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slice%2Fdiscord-package-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","gdpr"],"created_at":"2024-11-20T21:28:14.551Z","updated_at":"2026-05-20T09:31:45.984Z","avatar_url":"https://github.com/slice.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-package-exporter\n\nThis repository houses a Python 3 script that will export all messages from\nyour [Discord data package][ddp] into a [Postgresql][postgres] database.\nInstructions showing the process of obtaining your data package are available\n[here][ob].\n\n[postgres]: https://www.postgresql.org/\n[ob]:\nhttps://support.discordapp.com/hc/en-us/articles/360004027692-Requesting-a-Copy-of-your-Data\\\n[ddp]: https://support.discordapp.com/hc/en-us/articles/360004957991-Your-Discord-Data-Package\n\n## Usage\n\nThis script is tested with Postgres 10 only.\n\nThis script uses psycopg2 to connect to the Postgres database. Install\ndependencies with `pip`:\n\n```sh\n$ pip3 install -U -r requirements.txt\n```\n\nOr, if you'd prefer, just install `psycopg2` manually with `pip3 install\npsycopg2`.\n\nThis script assumes that you already have a Postgresql server setup on your\nlocal machine. The script will automatically create any required tables for\nyou, but you still need to create a database (you can name it `discord`):\n\n```sh\n$ createdb discord\n```\n\nOnce you have created the database, run the script:\n\n```sh\n$ python3 dpe.py \"$HOME/discord-data-package\" \"dbname=discord user=postgres\"\n```\n\nLike mentioned earlier, required tables will be created if they don't already\nexist.\n\nThe first argument is a path to your Discord data package, while the second\nargument is a [psycopg2 DSN (connection string)][connstr].\n\n[connstr]: https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING\n\nThis process can take a few minutes. Progress will be shown in your terminal\nwhile data is transferred.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslice%2Fdiscord-package-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslice%2Fdiscord-package-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslice%2Fdiscord-package-exporter/lists"}