Years ago I wrote a PHP script to download photographs from Flickr. That was the previous time the company changed hands, when it was sold to Yahoo! I am not sure I want to keep my photos on Flickr again so I brought my script up to date and made it iterate through all my albums so I could download everything in original resolution. Check it out.
If you just want to try it, you can download from my Git repo here.