bellingcat / auto-archiver

Automatically archive links to videos, images, and social media content from Google Sheets (and more).
https://pypi.org/project/auto-archiver/
MIT License
489 stars 53 forks source link

Put in hash_algorithm in config to switch between SHA256 and SHA3_512 #55

Closed djhmateer closed 1 year ago

djhmateer commented 1 year ago

Would appreciated refactoring's as my knowledge of Python OO is limited. This is very useful for us and having in a config allows much easier testing and deployment.

msramalho commented 1 year ago

Hi @djhmateer I've updated the names so they are standard instead of reflecting python's nomenclature SHA-256 or SHA3-512 and made this into a global Archiver property like TMP_FOLDER is for Storage, as this way it requires less visual complexity, there could be better OO approaches here, but those would require some refactor that I don't think is worth the time. Let me know if you see any issues.