Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
more verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Nov 12, 2019
1 parent 89f3cf3 commit 15ac4e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
search = str(config.get('channel', 'filter'))
search = search.split(',')

print('Scanning in progress')

for message in data['messages']:
if 'media' in message:
for term in search:
Expand All @@ -43,3 +45,5 @@
file = open(config.get('channel', 'download') + message['media']['document']['attributes'][0]['file_name'], 'wb')
file.write(response.read())
file.close

print('Finished')

0 comments on commit 15ac4e9

Please sign in to comment.