This is to download files from slack using python.
- Python3
- requests
This will show all the uploaded files in the slack. Follow below steps for displaying all uploaded files to slack.
- Clone this repo
- cd Slack
- Update token in slack_display_files.py file with your slack token
- python3 slack_display_files.py
This slack_download.py file will take two parameters for file extension and no.of Days respectively.
File extension: Need to specify the file exntension like jpg, png, mp4 etc which you want to download
No.of Days: Downloading files which are no.of days old and it should be an Integer.
Follow below steps for downloading files from slack.
- Clone this repo (Skip this if already done)
- cd Slack (Skip this if already done)
- Update token in slack_download.py file with your slack token
- python3 slack_download.py file_exntension no_of_days
Thanks to @jackcarter who did deleting files from slack in python. Refered this link for reading files https://gist.github.com/jackcarter/d86808449f0d95060a40.