{"id":13842989,"url":"https://github.com/andxyz/slack-history-export","last_synced_at":"2025-07-11T17:32:44.269Z","repository":{"id":53192409,"uuid":"70010130","full_name":"andxyz/slack-history-export","owner":"andxyz","description":"export your slack-history","archived":false,"fork":false,"pushed_at":"2022-10-30T22:13:47.000Z","size":14,"stargazers_count":25,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T17:35:28.897Z","etag":null,"topics":["export","export-json","slack","slack-api","slack-extension"],"latest_commit_sha":null,"homepage":null,"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/andxyz.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}},"created_at":"2016-10-04T22:02:36.000Z","updated_at":"2023-05-26T02:03:14.000Z","dependencies_parsed_at":"2023-01-20T13:01:56.554Z","dependency_job_id":null,"html_url":"https://github.com/andxyz/slack-history-export","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andxyz%2Fslack-history-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andxyz%2Fslack-history-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andxyz%2Fslack-history-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andxyz%2Fslack-history-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andxyz","download_url":"https://codeload.github.com/andxyz/slack-history-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225745398,"owners_count":17517632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["export","export-json","slack","slack-api","slack-extension"],"created_at":"2024-08-04T17:01:52.887Z","updated_at":"2024-11-21T14:30:34.177Z","avatar_url":"https://github.com/andxyz.png","language":"Python","funding_links":[],"categories":["Python","Python (1887)"],"sub_categories":[],"readme":"a fork of https://gist.github.com/Chandler/fb7a070f52883849de35\n\nMy fork is solely to document how to use the code with python3. If you are\nunfamiliar with python3 but own a mac laptop.\n\nThe script finds all channels, private channels and direct messages\nthat your user participates in. it downloads the complete history for\nthose converations and writes each conversation out to seperate json files.\n\nThis user centric history gathering is nice because the official slack data exporter\nonly exports public channels.\n\nPS, this only works if your slack team has a paid account which allows for unlimited history.\n\nPPS, this use of the API is blessed by Slack.\nhttps://get.slack.help/hc/en-us/articles/204897248\n\n\u003e If you want to export the contents of your own private groups and direct messages please see our API documentation.\n\n- step 1 visit https://api.slack.com/docs/oauth-test-tokens and click \"generate-test-token\"\n\n  ```shell\n  open 'https://api.slack.com/docs/oauth-test-tokens'\n  ```\n\n- step 2 check https://api.slack.com/tokens\n\n  ```shell\n  open 'https://api.slack.com/tokens'\n  ```\n\n#### A simple usage example\n\n```shell\ncd slack-history-export/\nbrew install python3\npip3 install pipenv\npipenv --python=/usr/local/bin/python3 shell\npipenv install\npipenv run python slack_history.py --token='123token'\n```\n\n#### other usage examples\n\n```shell\npipenv run python slack_history.py --token='123token'\npipenv run python slack_history.py --token='123token' --dryRun=True\npipenv run python slack_history.py --token='123token' --skipDirectMessages\npipenv run python slack_history.py --token='123token' --skipDirectMessages --skipPrivateChannels\n```\n\nsee [./slack_history.py](slack_history.py)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandxyz%2Fslack-history-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandxyz%2Fslack-history-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandxyz%2Fslack-history-export/lists"}