flickr_to_50mm
is a tool built to help you move your photo albums from flickr to 50mm (self-hosted and simple photo gallery software) - the catch is that it doesn't transfer any photos for you, only ordering configuration so that you don't have to re-do all that hard work.
For exporting your actual photos from flickr I can recommend flickrtouchr, it's a little rough around the edges but it works.
flickr_to_50mm is available on pypi, you can run pip install flickr_to_50mm
to get a hold of it.
git clone
this repository, pip install -r requirements.txt
and then run as below. virtualenvs are highly recommended.
- Get yourself an API key from flickr from here: https://www.flickr.com/services/apps/create/apply/
- Find your user ID, this is often in your album URLS, you'll see it in links like:
https://www.flickr.com/photos/<YOUR_ID_IS_HERE>/albums
flickr_to_50mm THAT_API_KEY_FROM_STEP_1 THAT_USER_ID_FROM_STEP_2
- You should get a yaml file dumped for each album on flickr
- Pretty sure things go wonky if an album has more than 500 photos (due to pagination), PRs welcome to account for that since I don't have any albums to practice on.
- We don't do much status code checking or rate limit checking, the assumption is that everything is always perfect... I mean, this is not production software.
- All or nothing processed - there is no ability to specify albums, if there's popular demand it's actually easy to implement, will do, just open an issue.
- Apparently every image ever generated is a
jpg
- this is an operating assumption that may or may not every be cleared up. - filenames with spaces have some issues, this may be a 50mm bug, looking in to it slowly but surely.
- This was smacked together real quick for personal use, I'm pretty sure there will be 10,000 edge cases I've not accounted for, if you find one and it's easy to fix, please submit a PR.