Visit Images In Imgur


How to visit images in imgur by a Python script.


Since Github only provide 300M free size to an account, I use imgur as a image server for my blog.

But imgur will delete images if no one visit them for 6 months. So, it is a good idea to visit images used by blog occasionally.

Here is Python script, which can parse the posts and visit images. You can download it into the base directory of your Jekyll site & execute it every month.

Beacuse the script save the downloaded images into _temp, you’d better add the fellowing line to your .gitignore

_temp/

This article is released under CC BY-NC-SA 3.0 license.