Skip to content

Configuration generator to make moving from flickr to 50mm easier

License

Notifications You must be signed in to change notification settings

arahayrabedian/flickr_to_50mm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flickr to 50mm Configuration Generator

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.

Installation

flickr_to_50mm is available on pypi, you can run pip install flickr_to_50mm to get a hold of it.

Development/Contributing/Tinkering

git clone this repository, pip install -r requirements.txt and then run as below. virtualenvs are highly recommended.

Usage

  1. Get yourself an API key from flickr from here: https://www.flickr.com/services/apps/create/apply/
  2. 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
  3. flickr_to_50mm THAT_API_KEY_FROM_STEP_1 THAT_USER_ID_FROM_STEP_2
  4. You should get a yaml file dumped for each album on flickr

Known limitations

  • 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.

Unknown Limitations

  • 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.

About

Configuration generator to make moving from flickr to 50mm easier

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages