Instagramにはたくさんの写真がアップロードされています。タグをウォッチして飽きるまで眺め続けたり、フォローしている人の写真を逐一閲覧している人もいるでしょう。 しかしソーシャルサービスでは相手の都合でファイルの削除、非公開化が可能です。万一写真がロストしないようダウンロードする際にはInstaloaderを使ってみましょう。

Instaloaderの使い方

例えば個人の写真は profile でユーザ名を指定します。

$ instaloader profile moongift
Stored ID 725407287 for profile profile.
Stored ID 11586300 for profile moongift.
Downloading 2 profiles: moongift profile
Warning: Use --login to download HD version of profile pictures.
moongift/2015-08-15_02-12-52_UTC_profile_pic.jpg 
Retrieving posts from profile moongift.
[  1/ 90] moongift/2019-01-01_06-11-34_UTC.jpg [A happy new year! #エッグコーヒー] json 
[  2/ 90] moongift/2015-07-13_01-34-10_UTC.jpg [Johmon cedar. He is the oldes…] json 

Instaloaderではタグやストーリー、特定のユーザの写真(動画含む)をダウンロードできます。自分のものであればプライベートな写真もダウンロード可能です。とても簡単に使えるのでバックアップに使うと良さそうです。

instaloaderはPython製のオープンソース・ソフトウェア(MIT License)です。

instaloader/instaloader: Download pictures (or videos) along with their captions and other metadata from Instagram.