https://github.com/noirscape/tumblr-backup
A simple port to python3 of bbolli/tumblr-utils's tumblr_backup.py script. Effectively brings the script to the modern age.
https://github.com/noirscape/tumblr-backup
Last synced: over 1 year ago
JSON representation
A simple port to python3 of bbolli/tumblr-utils's tumblr_backup.py script. Effectively brings the script to the modern age.
- Host: GitHub
- URL: https://github.com/noirscape/tumblr-backup
- Owner: noirscape
- License: gpl-3.0
- Created: 2020-01-23T21:22:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-23T21:23:00.000Z (over 6 years ago)
- Last Synced: 2025-01-23T12:46:26.625Z (over 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tumblr_backup
A port of the popular tumblr_backup python script to Python 3, since Python 2 has finally kicked the bucket.
Usage parameters are identical to the old script. Doesn't rely on anything outside the stdlib, although youtube-dl and pyexiv2 are highly useful.
License is GPLv3, just like the original.
## Fixes applied
This is more or less the amount of steps that it took to convert this python 2 script to python 3.
* Ran 2to3
* Fixed content-type check in API requests
* Removed a pointless decode
* Fixed time.mktime
* Fixed hexdigest generation for the tag index (this is broken in the python 2 script, fixed in this one).
## Notes
The core codebase is completely unchanged. In my personal opinion, the code could use a complete overhaul from scratch, it's quite a mess to read. This was purely a hacked together fix to get the script working again.