I wanted to move all the image files used in my blog from Imgur to my own Amazon S3 bucket. I wrote a Python script to help using
rclone. I've written about
rclone before. It is really nifty command line utility for Cloud services. It can copy files from an URL directly to Amazon S3, Google Drive, and other cloud services without having to download the file locally first.
URL manipulation turned out to be trickier than I expected. Saving the steps involved in this post for posterity.