Skip to content

Commit

Permalink
Merge pull request #1 from achisto/achisto-protected-account-download
Browse files Browse the repository at this point in the history
Suggestion for protected users
  • Loading branch information
achisto authored Nov 13, 2022
2 parents 25da27a + 8297818 commit 6972d97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion download_better_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def main():
print(f'This script will attempt to download {number_of_files} files from twimg.com. If the downloaded version is larger')
print(f'than the version in {media_folder_name}/ then it will be overwritten. Please be aware that this script may download')
print('a lot of data, which will cost you money if you are paying for bandwidth. Please be aware that')
print('the servers might block these requests if they are too frequent.')
print('the servers might block these requests if they are too frequent. This script may not work if your account is')
print('protected. You may want to set it to public before starting the download.')
user_input = input('\nOK to continue? [y/n]')
if not user_input.lower() in ('y', 'yes'):
exit()
Expand Down Expand Up @@ -109,6 +110,7 @@ def main():
logging.info(f'Total downloaded: {total_bytes_downloaded/2**20:.1f}MB = {total_bytes_downloaded/2**30:.2f}GB')
logging.info(f'Time taken: {end_time-start_time:.0f}s')
print(f'Wrote log to {log_filename}')
print('In case you set your account to public before initiating the download, do not forget to protect it again.')

if __name__ == "__main__":
main()

0 comments on commit 6972d97

Please sign in to comment.