
もう一つのAPI不要のInstagram画像・動画ダウンローダー。(機能停止)
.. |starme| image:: https://img.shields.io/github/stars/althonos/InstaLooter.svg?style=social&label=Star :target: https://github.com/althonos/InstaLooter
宝物はすべて銀や金だけじゃないぜ、相棒。
|build| |repo| |versions| |format| |coverage| |doc| |grade| |license| |keepachangelog| |saythanks|
.. |build| image:: https://img.shields.io/travis/althonos/InstaLooter/master.svg?label=travis-ci&style=flat-square :target: https://travis-ci.org/althonos/InstaLooter/
.. |repo| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/althonos/InstaLooter
.. |versions| image:: https://img.shields.io/pypi/v/instalooter.svg?style=flat-square :target: https://pypi.org/project/instalooter
.. |format| image:: https://img.shields.io/pypi/format/instalooter.svg?style=flat-square :target: https://pypi.org/project/instalooter
.. |grade| image:: https://img.shields.io/codacy/grade/9b8c7da6887c4195b9e960cb04b59a91/master.svg?style=flat-square :target: https://www.codacy.com/app/althonos/InstaLooter/dashboard
.. |coverage| image:: https://img.shields.io/codecov/c/github/althonos/InstaLooter/master.svg?style=flat-square :target: https://codecov.io/gh/althonos/InstaLooter
.. |doc| image:: https://img.shields.io/readthedocs/instalooter.svg?style=flat-square :target: http://instalooter.readthedocs.io/en/stable/?badge=stable
.. .. |requirements| image:: https://img.shields.io/requires/github/althonos/InstaLooter/master.svg?style=flat-square .. :target: https://requires.io/github/althonos/InstaLooter/requirements/?branch=master
.. .. |health| image:: https://landscape.io/github/althonos/InstaLooter/master/landscape.svg?style=flat-square .. :target: https://landscape.io/github/althonos/InstaLooter/master
.. |license| image:: https://img.shields.io/pypi/l/instalooter.svg?style=flat-square :target: https://choosealicense.com/licenses/gpl-3.0/
.. |keepachangelog| image:: https://img.shields.io/badge/keep%20a-changelog-8A0707.svg?maxAge=86400&style=flat-square :target: http://keepachangelog.com/
.. |saythanks| image:: https://img.shields.io/badge/say-thanks!-1EAEDB.svg?maxAge=86400&style=flat-square :target: https://saythanks.io/to/althonos
InstaLooter は、API を使用せずに Instagram プロファイルから関連するすべての画像や動画をダウンロードできるプログラムです。これは、現在非推奨となっている InstaRaider <https://github.com/akurtovic/InstaRaider>(@akurtovic <https://github.com/akurtovic> によって開発されました)の再実装と見なすことができます。
v1.0.0 は完全にゼロから書き直されたため、自作スクリプトとの互換性が壊れる可能性があります。その一方で、CLI を以前のバージョンと可能な限り一貫性を保つように細心の注意が払われているため、おそらく以前と同じように感じられるでしょう。
+--------------------+----------------------------+----------------------+------------------------+-------------------------+ | coloredlogs | 色付き出力 | |PyPI coloredlogs| | |Source coloredlogs| | |License coloredlogs| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | dateutil | 日付操作 | |PyPI dateutil| | |Source dateutil| | |License dateutil| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | docopt | CLI 引数解析 | |PyPI docopt| | |Source docopt| | |License docopt| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | fs | ファイルシステム操作 | |PyPI fs| | |Source fs| | |License fs| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | requests | HTTP 処理 | |PyPI requests| | |Source requests| | |License requests| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | six | Python 2/3 互換性 | |PyPI six| | |Source six| | |License six| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | tenacity | 成功するまでリトライ | |PyPI tenacity| | |Source tenacity| | |License tenacity| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | tqdm | CLI の動的出力 | |PyPI tqdm| | |Source tqdm| | |License tqdm| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+ | verboselogs | より詳細なログ | |PyPI verboselogs| | |Source verboselogs| | |License verboselogs| | +--------------------+----------------------------+----------------------+------------------------+-------------------------+
.. |PyPI coloredlogs| image:: https://img.shields.io/pypi/v/coloredlogs.svg?style=flat-square :target: https://pypi.org/project/coloredlogs
.. |PyPI dateutil| image:: https://img.shields.io/pypi/v/python-dateutil.svg?style=flat-square :target: https://pypi.org/project/python-dateutil/
.. |PyPI docopt| image:: https://img.shields.io/pypi/v/docopt.svg?style=flat-square :target: https://pypi.org/project/docopt/
.. |PyPI fs| image:: https://img.shields.io/pypi/v/fs.svg?style=flat-square :target: https://pypi.org/project/fs/
.. |PyPI fakeua| image:: https://img.shields.io/pypi/v/fake-useragent.svg?style=flat-square :target: https://pypi.org/project/fake-useragent/
.. |PyPI requests| image:: https://img.shields.io/pypi/v/requests.svg?style=flat-square :target: https://pypi.org/project/requests
.. |PyPI six| image:: https://img.shields.io/pypi/v/six.svg?style=flat-square :target: https://pypi.org/project/six
.. |PyPI tenacity| image:: https://img.shields.io/pypi/v/tenacity.svg?style=flat-square :target: https://pypi.org/project/tenacity
.. |PyPI tqdm| image:: https://img.shields.io/pypi/v/tqdm.svg?style=flat-square :target: https://pypi.org/project/tqdm
.. |PyPI verboselogs| image:: https://img.shields.io/pypi/v/verboselogs.svg?style=flat-square :target: https://pypi.org/project/verboselogs
.. |Source coloredlogs| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/xolox/python-coloredlogs
.. |Source dateutil| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/dateutil/dateutil/
.. |Source docopt| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/docopt/docopt
.. |Source fs| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/PyFilesystem/pyfilesystem2
.. |Source fakeua| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/hellysmile/fake-useragent
.. |Source requests| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/kennethreitz/requests
.. |Source six| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/benjaminp/six
.. |Source tenacity| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/jd/tenacity
.. |Source tqdm| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/tqdm/tqdm
.. |Source verboselogs| image:: https://img.shields.io/badge/source-GitHub-303030.svg?style=flat-square :target: https://github.com/xolox/python-verboselogs
.. |License coloredlogs| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square :target: https://choosealicense.com/licenses/mit/
.. |License dateutil| image:: https://img.shields.io/pypi/l/python-dateutil.svg?style=flat-square :target: https://choosealicense.com/licenses/apache-2.0/
.. |License docopt| image:: https://img.shields.io/pypi/l/docopt.svg?style=flat-square :target: https://choosealicense.com/licenses/mit/
.. |License fs| image:: https://img.shields.io/pypi/l/fs.svg?style=flat-square :target: https://choosealicense.com/licenses/mit/
.. |License fakeua| image:: https://img.shields.io/badge/license-Apache_2.0-blue.svg?style=flat-square :target: https://choosealicense.com/licenses/apache-2.0/
.. |License requests| image:: https://img.shields.io/pypi/l/requests.svg?style=flat-square :target: https://choosealicense.com/licenses/apache-2.0/
.. |License six| image:: https://img.shields.io/pypi/l/six.svg?style=flat-square :target: https://choosealicense.com/licenses/mit/
.. |License tenacity| image:: https://img.shields.io/badge/license-Apache_2.0-blue.svg?style=flat-square :target: https://choosealicense.com/licenses/apache-2.0/
.. |License tqdm| image:: https://img.shields.io/pypi/l/tqdm.svg?style=flat-square :target: https://choosealicense.com/licenses/mpl-2.0/
.. |License verboselogs| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square :target: https://choosealicense.com/licenses/mit/
InstaLooter は PyPI で提供されており、pip でインストールできます。Python エコシステムのパッケージ管理に慣れていない場合は、ドキュメント <http://instalooter.readthedocs.io/en/latest/index.html>_ の インストールページ <http://instalooter.readthedocs.io/en/latest/install.html>_ を参照してください。ただし、おそらく次のコマンドを使用することになるでしょう::
pip install --user instalooter --pre
instalooter には CLI が付属しています::
$ instalooter user <username> [<directory>] [options]
$ instalooter hashtag <hashtag> [<directory>] [options]
$ instalooter post <post_token> [<directory>] [options]
$ instalooter batch [<batch_file>]
すべての使用法については instalooter --usage を、完全な使用ガイドについては instalooter --help を参照してください。
instalooter を介して Instagram にログインする方法は 2 つあります。
instalooter login) を使用して、ユーザー名とパスワードを対話的に入力してログインする。--username (必要に応じて --password) 引数を指定する。どちらの場合も、セッション cookie がキャッシュ固有のフォルダに作成されます。これを削除してサーバー上のセッションを閉じるには、logout サブコマンドを使用します。
カレントディレクトリにある instagram プロファイルからすべての 画像 をダウンロード::
$ instalooter user instagram
python タグが付いた最新の 20 件の画像または動画を /tmp にダウンロード::
$ instalooter hashtag python /tmp -n 20 --get-videos -c MYLOGIN
URL から単一の投稿を ~/Pictures ディレクトリにダウンロード::
$ instalooter post "https://www.instagram.com/p/BFB6znLg5s1/" ~/Pictures
設定ファイルを使用して、カスタムパラメータで複数のアカウントからダウンロード (バッチモード <http://instalooter.readthedocs.io/en/latest/batch.html>_ を参照)::
$ instalooter batch /path/to/a/config/file.ini
詳細については、オンラインドキュメント <http://instalooter.readthedocs.io/en/latest/index.html>_ の 使い方ページ <http://instalooter.readthedocs.io/en/latest/usage.html>_ を参照してください。