mirror of
https://github.com/instaloader/instaloader.git
synced 2026-10-19 23:22:16 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e904e8a14 | ||
|
|
f16b99bec0 | ||
|
|
d316ddf02a | ||
|
|
efa0b93fda | ||
|
|
ced65ea401 | ||
|
|
73ec884ea4 | ||
|
|
74d5e35eb8 | ||
|
|
8612712f44 | ||
|
|
67ac8f3397 | ||
|
|
5fe2a70374 | ||
|
|
8bd9c4449c | ||
|
|
edd1fbe49c | ||
|
|
dae18a05c6 | ||
|
|
c5b60b8a12 | ||
|
|
40a87761c9 | ||
|
|
d9b5c77e3a | ||
|
|
5b6e8f1a31 | ||
|
|
d533c60824 | ||
|
|
539273b963 | ||
|
|
71331d37e4 | ||
|
|
36110c8727 | ||
|
|
4a944fbbdb | ||
|
|
6764cd961f | ||
|
|
a125b367e3 | ||
|
|
07b30d6ebd | ||
|
|
3640e9c056 | ||
|
|
90a1b73d21 | ||
|
|
a7f89e4327 | ||
|
|
af1ec22d41 | ||
|
|
f55334cd5b | ||
|
|
b2f31e7782 | ||
|
|
68d8f65cb9 | ||
|
|
e97e4ecdc8 | ||
|
|
e77c998a94 | ||
|
|
861d7b92f1 | ||
|
|
bfc882306b | ||
|
|
14e9cf435e | ||
|
|
83b31175df | ||
|
|
92114f9018 | ||
|
|
58a80c349d | ||
|
|
5f34fca9e7 | ||
|
|
fd6389249c | ||
|
|
374f13adbf | ||
|
|
17e443a7e2 | ||
|
|
4628f1cc8d | ||
|
|
e97411a502 | ||
|
|
304cde64fe | ||
|
|
3dbce922c3 | ||
|
|
4e57ac77f0 | ||
|
|
de960b2b57 | ||
|
|
9b60adeb45 | ||
|
|
0333bb5e99 | ||
|
|
b1edaddb31 | ||
|
|
01c2a2b1cb | ||
|
|
541b29b2e9 | ||
|
|
6f3afd2fa1 | ||
|
|
882d460a67 | ||
|
|
9b11ca18d1 | ||
|
|
39bd7c55f6 | ||
|
|
3654d6bf6d | ||
|
|
1ca368fa45 | ||
|
|
698ea51cb9 | ||
|
|
e6be0179b7 | ||
|
|
97e1bd2bf0 | ||
|
|
5695bca9f3 | ||
|
|
75d9dda4ba | ||
|
|
41a50ffa5a | ||
|
|
3daaa6fbbc |
+19
-10
@@ -4,17 +4,26 @@ python:
|
|||||||
- "3.5-dev"
|
- "3.5-dev"
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "3.6-dev"
|
- "3.6-dev"
|
||||||
- "3.7-dev"
|
|
||||||
- "nightly"
|
|
||||||
install:
|
install:
|
||||||
- pip install pylint requests
|
- pip install pylint requests
|
||||||
|
- pip install -r docs/requirements.txt
|
||||||
script:
|
script:
|
||||||
- python3 -m pylint -r n -d bad-whitespace,missing-docstring,too-many-arguments,locally-disabled,line-too-long,too-many-public-methods,too-many-lines,too-many-instance-attributes,too-many-locals,too-many-branches,too-many-statements instaloader
|
- python3 -m pylint -r n -d bad-whitespace,missing-docstring,too-many-arguments,locally-disabled,line-too-long,too-many-public-methods,too-many-lines,too-many-instance-attributes,too-many-locals,too-many-branches,too-many-statements,inconsistent-return-statements instaloader
|
||||||
|
- make -C docs html
|
||||||
deploy:
|
deploy:
|
||||||
provider: pypi
|
- provider: pypi
|
||||||
user: aandergr
|
user: aandergr
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
python: 3.6
|
python: 3.6
|
||||||
password:
|
password:
|
||||||
secure: KBsATtXNnEzqr0X2ALdyx2zaYj2EUfK8YjP4jEOilBELpJ4evHYXVgRkn9CKXGsD7LKbWmR3gz2rr8NZ6U42pHw0fpQHizz91MpJSKbNY7RZZh4UVWMDh81izeglchWAF+m3Wdpxpo/GBDbrZIbRQFhPgB+kjSzJo3uiCS+yVXtGG+6csJHzd0WkJjsVHz+XSdxyOiLy/qFF3nmY6ZrVrgw6WbX2YLbx9je6DxK3YRrnBqgMgH7Ui2xWWbgJCk3KKpQTMiMKnTa9mdeMJAd26YMCz1gG/X7ck6VNly/6bs5+Zq7/bU0dSolhPBhNthyccYdS0IeGPdPF3YqatblJ4fLGTfHn8oJs3/T11yIW9pvOT3UftEynPOUX+en2Qnb/3WfgwUfVts8i8DAYgEFLGEzbF5XMGy4gwAD/bZ0JW0pmgAG2PZsdOokAt+ydlNj/uxq1GFW2doZbul6k4t03p1mik6itYscvuhKoEm8Yw6wr1P9aDvMR6FFpSu4gDt2XrKmRmWkSXxpNeCfZujTjyAnISxLVQGSY7BG5K0Z2HbDtqqNz9nj4WgNGzZmngiRofCevWR+vPIDUDW7NCX03csfcFS9RRllBO/BrL7NVUV+Qp9dfTQYp+8SqYLWgHtDoXdgyMREjJaAmbx2u/TYTY8bADZ5F3vGUpv2j5hP3NTU=
|
secure: KBsATtXNnEzqr0X2ALdyx2zaYj2EUfK8YjP4jEOilBELpJ4evHYXVgRkn9CKXGsD7LKbWmR3gz2rr8NZ6U42pHw0fpQHizz91MpJSKbNY7RZZh4UVWMDh81izeglchWAF+m3Wdpxpo/GBDbrZIbRQFhPgB+kjSzJo3uiCS+yVXtGG+6csJHzd0WkJjsVHz+XSdxyOiLy/qFF3nmY6ZrVrgw6WbX2YLbx9je6DxK3YRrnBqgMgH7Ui2xWWbgJCk3KKpQTMiMKnTa9mdeMJAd26YMCz1gG/X7ck6VNly/6bs5+Zq7/bU0dSolhPBhNthyccYdS0IeGPdPF3YqatblJ4fLGTfHn8oJs3/T11yIW9pvOT3UftEynPOUX+en2Qnb/3WfgwUfVts8i8DAYgEFLGEzbF5XMGy4gwAD/bZ0JW0pmgAG2PZsdOokAt+ydlNj/uxq1GFW2doZbul6k4t03p1mik6itYscvuhKoEm8Yw6wr1P9aDvMR6FFpSu4gDt2XrKmRmWkSXxpNeCfZujTjyAnISxLVQGSY7BG5K0Z2HbDtqqNz9nj4WgNGzZmngiRofCevWR+vPIDUDW7NCX03csfcFS9RRllBO/BrL7NVUV+Qp9dfTQYp+8SqYLWgHtDoXdgyMREjJaAmbx2u/TYTY8bADZ5F3vGUpv2j5hP3NTU=
|
||||||
|
- provider: pages
|
||||||
|
skip-cleanup: true
|
||||||
|
github-token: $GITHUB_TOKEN
|
||||||
|
local-dir: docs/_build/html
|
||||||
|
repo: instaloader/instaloader.github.io
|
||||||
|
target-branch: master
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
python: 3.6
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2016 Alexander Graf and André Koch-Kramer.
|
Copyright (c) 2016-2018 Alexander Graf and André Koch-Kramer.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+6
-7
@@ -1,5 +1,4 @@
|
|||||||
Instaloader
|
.. image:: https://raw.githubusercontent.com/instaloader/instaloader/master/docs/logo_heading.png
|
||||||
===========
|
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -9,8 +8,8 @@ Instaloader
|
|||||||
|
|
||||||
**Instaloader**
|
**Instaloader**
|
||||||
|
|
||||||
- downloads **public and private profiles, hashtags, user stories and
|
- downloads **public and private profiles, hashtags, user stories,
|
||||||
feeds**,
|
feeds and saved media**,
|
||||||
|
|
||||||
- downloads **comments, geotags and captions** of each post,
|
- downloads **comments, geotags and captions** of each post,
|
||||||
|
|
||||||
@@ -24,9 +23,9 @@ Instaloader
|
|||||||
|
|
||||||
instaloader [--comments] [--geotags] [--stories]
|
instaloader [--comments] [--geotags] [--stories]
|
||||||
[--login YOUR-USERNAME] [--fast-update]
|
[--login YOUR-USERNAME] [--fast-update]
|
||||||
profile | "#hashtag" | :stories | :feed
|
profile | "#hashtag" | :stories | :feed | :saved
|
||||||
|
|
||||||
`Instaloader Documentation <https://instaloader.readthedocs.io/>`__
|
`Instaloader Documentation <https://instaloader.github.io/>`__
|
||||||
|
|
||||||
|
|
||||||
How to Automatically Download Pictures from Instagram
|
How to Automatically Download Pictures from Instagram
|
||||||
@@ -65,7 +64,7 @@ temporary directory, which will be reused later the next time ``--login``
|
|||||||
is given. So you can download private profiles **non-interactively** when you
|
is given. So you can download private profiles **non-interactively** when you
|
||||||
already have a valid session cookie file.
|
already have a valid session cookie file.
|
||||||
|
|
||||||
`Instaloader Documentation <https://instaloader.readthedocs.io/basic-usage.html>`__
|
`Instaloader Documentation <https://instaloader.github.io/basic-usage.html>`__
|
||||||
|
|
||||||
|
|
||||||
Disclaimer
|
Disclaimer
|
||||||
|
|||||||
+7
-1
@@ -50,7 +50,7 @@ clean:
|
|||||||
|
|
||||||
.PHONY: html
|
.PHONY: html
|
||||||
html:
|
html:
|
||||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
LC_ALL=C $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||||
@echo
|
@echo
|
||||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||||
|
|
||||||
@@ -223,3 +223,9 @@ dummy:
|
|||||||
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
|
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
|
||||||
@echo
|
@echo
|
||||||
@echo "Build finished. Dummy builder generates no files."
|
@echo "Build finished. Dummy builder generates no files."
|
||||||
|
|
||||||
|
favicon.ico: logo.svg
|
||||||
|
convert -density 384 -background transparent -define icon:auto-resize -colors 256 logo.svg favicon.ico
|
||||||
|
|
||||||
|
logo.png: logo.svg
|
||||||
|
inkscape -z -e logo.png -w 100 -h 100 logo.svg
|
||||||
|
|||||||
+2
-2
@@ -3,13 +3,13 @@
|
|||||||
This directory contains sources for the Instaloader documentation.
|
This directory contains sources for the Instaloader documentation.
|
||||||
|
|
||||||
The documentation is hosted at:
|
The documentation is hosted at:
|
||||||
https://instaloader.readthedocs.io/
|
https://instaloader.github.io/
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
The documentation is created with [Sphinx](http://www.sphinx-doc.org/). To build it, use
|
The documentation is created with [Sphinx](http://www.sphinx-doc.org/). To build it, use
|
||||||
|
|
||||||
```
|
```
|
||||||
pip3 install sphinx sphinx-autodoc-typehints
|
pip3 install -r requirements.txt
|
||||||
make html
|
make html
|
||||||
```
|
```
|
||||||
|
|||||||
Vendored
+12
@@ -0,0 +1,12 @@
|
|||||||
|
code {
|
||||||
|
color: #222;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
padding-left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl.option dd {
|
||||||
|
padding-left: 12px;
|
||||||
|
}
|
||||||
Vendored
-2
@@ -1,2 +0,0 @@
|
|||||||
<h2><a href="index.html">Instaloader</a></h2>
|
|
||||||
<p>Download pictures (or videos) along with their captions and other metadata from Instagram.</p>
|
|
||||||
Vendored
+14
@@ -0,0 +1,14 @@
|
|||||||
|
<li class="dropdown globaltoc-container">
|
||||||
|
<a role="button"
|
||||||
|
id="dLabelGlobalToc"
|
||||||
|
data-toggle="dropdown"
|
||||||
|
data-target="#"
|
||||||
|
href="{{ pathto(master_doc) }}">{{ theme_navbar_site_name }} <b class="caret"></b></a>
|
||||||
|
<ul class="dropdown-menu globaltoc"
|
||||||
|
role="menu"
|
||||||
|
aria-labelledby="dLabelGlobalToc">
|
||||||
|
{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }}
|
||||||
|
<li role="separator" class="divider"></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="genindex.html">Index</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
Vendored
+15
-2
@@ -1,5 +1,18 @@
|
|||||||
{% extends "!layout.html" %}
|
{% extends "!layout.html" %}
|
||||||
|
{% block htmltitle %}
|
||||||
|
{% if pagename == "index" %}
|
||||||
|
<title>{{ title|striptags|e }}</title>
|
||||||
|
{% else %}
|
||||||
|
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
<meta name="google-site-verification" content="0esgS4FkYROvPe-I9MYvC1tTYtfASPpqxBdpTHEBIcQ" />
|
{{ super() }}
|
||||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
<meta name="google-site-verification" content="FNUsDdkOJM9obm9QEdrNBVd9AtAzHzA-aaSMCUrS6C8" />
|
||||||
|
{% if pagename == "index" %}
|
||||||
|
<link rel="canonical" href="https://instaloader.github.io/" />
|
||||||
|
{% else %}
|
||||||
|
<link rel="canonical" href="https://instaloader.github.io/{{ pagename }}.html" />
|
||||||
|
{% endif %}
|
||||||
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Vendored
-18
@@ -1,18 +0,0 @@
|
|||||||
{% if next %}
|
|
||||||
<h3>Next</h3>
|
|
||||||
<ul>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="{{ next.link|e }}">{{ next.title }}</a></li>
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
<h3>Links</h3>
|
|
||||||
<ul>
|
|
||||||
<li><a href="https://github.com/Thammus/instaloader/issues">Issue Tracker</a></li>
|
|
||||||
<li><a href="https://github.com/Thammus/instaloader/releases">Version History</a></li>
|
|
||||||
<li><a href="https://pypi.python.org/pypi/instaloader">Instaloader on PyPI</a></li>
|
|
||||||
<li><a href="https://github.com/Thammus/instaloader">Instaloader on GitHub</a></li>
|
|
||||||
</ul>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a class="github-button" href="https://github.com/Thammus/Instaloader" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star Thammus/Instaloader on GitHub">Star</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
Vendored
+58
@@ -0,0 +1,58 @@
|
|||||||
|
<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
|
||||||
|
{%- block sidebarlogo %}
|
||||||
|
{%- if logo %}<span><img src="{{ pathto('_static/' + logo, 1) }}"></span>{%- endif %}
|
||||||
|
{%- endblock %}
|
||||||
|
{% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%}
|
||||||
|
</a>
|
||||||
|
<span class="navbar-text navbar-version pull-left">
|
||||||
|
<a href="https://github.com/instaloader/instaloader/releases/tag/v{{current_release}}" title="Released on {{current_release_date}}">v<b>{{current_release}}</b></a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse nav-collapse">
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
{% if theme_navbar_links %}
|
||||||
|
{%- for link in theme_navbar_links %}
|
||||||
|
<li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li>
|
||||||
|
{%- endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% block navbartoc %}
|
||||||
|
{% include "globaltoc.html" %}
|
||||||
|
{% if theme_navbar_pagenav and pagename not in ("index", "genindex", "installation") %}
|
||||||
|
{% include "navbartoc.html" %}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% if theme_navbar_sidebarrel %}
|
||||||
|
{% block sidebarrel %}
|
||||||
|
{% include "relations.html" %}
|
||||||
|
{% endblock %}
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
<li class="dropdown">
|
||||||
|
<a role="button" id="dLabelUsefulLinks" data-toggle="dropdown" data-target="#" href="#">
|
||||||
|
Useful Links
|
||||||
|
<b class="caret"></b>
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabelUsefulLinks">
|
||||||
|
<li><a href="https://github.com/instaloader/instaloader/issues">Issue Tracker</a></li>
|
||||||
|
<li><a href="https://github.com/instaloader/instaloader/releases">Version History</a></li>
|
||||||
|
<li><a href="https://pypi.org/project/instaloader/">Instaloader on PyPI</a></li>
|
||||||
|
<li><a href="https://github.com/instaloader/instaloader">Instaloader on GitHub</a></li>
|
||||||
|
<li role="separator" class="divider"></li>
|
||||||
|
<li style="padding-left: 20px;"><a class="github-button" href="https://github.com/instaloader/instaloader" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star Instaloader on GitHub">Star</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{% extends "!page.html" %}
|
||||||
|
{% block body %}
|
||||||
|
{{ super() }}
|
||||||
|
{% if next and prev %}
|
||||||
|
<h2>Next Section</h2>
|
||||||
|
<p>
|
||||||
|
<a class="reference internal" href="{{ next.link|e }}">{{ next.title }}</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
+5
-4
@@ -1,7 +1,7 @@
|
|||||||
.. meta::
|
.. meta::
|
||||||
:description:
|
:description:
|
||||||
Instaloader can also be used as a powerful and easy-to-use
|
Documentation of Instaloader module, a powerful and easy-to-use
|
||||||
Python API for Instagram, allowing to download media and metadata.
|
Python library to download Instagram media and metadata.
|
||||||
|
|
||||||
Python Module :mod:`instaloader`
|
Python Module :mod:`instaloader`
|
||||||
--------------------------------
|
--------------------------------
|
||||||
@@ -37,7 +37,8 @@ certain source::
|
|||||||
L.download_post(post, target='#cat')
|
L.download_post(post, target='#cat')
|
||||||
|
|
||||||
Besides :func:`Instaloader.get_hashtag_posts`, there is
|
Besides :func:`Instaloader.get_hashtag_posts`, there is
|
||||||
:func:`Instaloader.get_feed_posts` and :func:`Instaloader.get_profile_posts`.
|
:func:`Instaloader.get_feed_posts`, :func:`Instaloader.get_profile_posts` and
|
||||||
|
:func:`Instaloader.get_saved_posts`.
|
||||||
Also, :class:`Post` instances can be created with :func:`Post.from_shortcode`
|
Also, :class:`Post` instances can be created with :func:`Post.from_shortcode`
|
||||||
and :func:`Post.from_mediaid`.
|
and :func:`Post.from_mediaid`.
|
||||||
|
|
||||||
@@ -68,7 +69,7 @@ call::
|
|||||||
A reference of the many methods provided by the :mod:`instaloader` module is
|
A reference of the many methods provided by the :mod:`instaloader` module is
|
||||||
provided in the remainder of this document. Feel free to direct any issue or
|
provided in the remainder of this document. Feel free to direct any issue or
|
||||||
contribution to
|
contribution to
|
||||||
`Instaloader on Github <https://github.com/Thammus/instaloader>`__.
|
`Instaloader on Github <https://github.com/instaloader/instaloader>`__.
|
||||||
|
|
||||||
``Instaloader`` (Main Class)
|
``Instaloader`` (Main Class)
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|||||||
+11
-1
@@ -1,3 +1,10 @@
|
|||||||
|
.. meta::
|
||||||
|
:description:
|
||||||
|
How to download pictures from Instagram. Description of basic
|
||||||
|
usage of Instaloader, free tool to download photos from public
|
||||||
|
and private profiles, hashtags, stories, feeds, saved media, and
|
||||||
|
their metadata, comments and captions.
|
||||||
|
|
||||||
Download Pictures from Instagram
|
Download Pictures from Instagram
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
@@ -63,6 +70,9 @@ Instaloader supports the following targets:
|
|||||||
``:feed``
|
``:feed``
|
||||||
Your **feed** (requires :option:`--login`),
|
Your **feed** (requires :option:`--login`),
|
||||||
|
|
||||||
|
``:saved``
|
||||||
|
Posts which are marked as **saved** (requires :option:`--login`),
|
||||||
|
|
||||||
``@profile``
|
``@profile``
|
||||||
All profiles that are followed by ``profile``, i.e. the *followees* of
|
All profiles that are followed by ``profile``, i.e. the *followees* of
|
||||||
``profile`` (requires :option:`--login`).
|
``profile`` (requires :option:`--login`).
|
||||||
@@ -95,7 +105,7 @@ pattern, the token ``{target}`` is replaced by the target name, and
|
|||||||
:option:`--filename-pattern` configures the path of the post's files relative
|
:option:`--filename-pattern` configures the path of the post's files relative
|
||||||
to the target directory. The default is ``--filename-pattern={date}``.
|
to the target directory. The default is ``--filename-pattern={date}``.
|
||||||
The tokens ``{target}`` and ``{profile}`` are replaced like in the
|
The tokens ``{target}`` and ``{profile}`` are replaced like in the
|
||||||
dirname pattern. Further, the tokens ``{date}`` and ``{shortcode}`` are
|
dirname pattern. Further, the tokens ``{date}``, ``{date_utc}`` and ``{shortcode}`` are
|
||||||
defined. Additionally, in case of not downloading stories, the attributes of
|
defined. Additionally, in case of not downloading stories, the attributes of
|
||||||
:class:`.Post` can be used, e.g. ``{post.owner_id}`` or ``{post.mediaid}``.
|
:class:`.Post` can be used, e.g. ``{post.owner_id}`` or ``{post.mediaid}``.
|
||||||
|
|
||||||
|
|||||||
+18
-8
@@ -7,7 +7,8 @@ Instaloader is invoked with::
|
|||||||
|
|
||||||
where ``target`` is a ``profile``, a ``"#hashtag"``, ``@profile`` (all profiles
|
where ``target`` is a ``profile``, a ``"#hashtag"``, ``@profile`` (all profiles
|
||||||
that *profile* is following), or if logged in ``:feed`` (pictures from your
|
that *profile* is following), or if logged in ``:feed`` (pictures from your
|
||||||
feed) or ``:stories`` (stories of your followees).
|
feed), ``:stories`` (stories of your followees) or ``:saved`` (collection of
|
||||||
|
posts marked as saved).
|
||||||
|
|
||||||
Here we explain the additional options that can be given to Instaloader to
|
Here we explain the additional options that can be given to Instaloader to
|
||||||
customize its behavior. To get a list of all flags, their abbreviations and
|
customize its behavior. To get a list of all flags, their abbreviations and
|
||||||
@@ -16,20 +17,28 @@ their descriptions, you may also run ``instaloader --help``.
|
|||||||
What to Download
|
What to Download
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Specify a list of targets (profiles, #hashtags, ``:feed`` or ``:stories``). For
|
Specify a list of targets (profiles, #hashtags, ``:feed``, ``:stories`` or
|
||||||
each of these, Instaloader creates a folder and stores all posts along with the
|
``:saved``). For each of these, Instaloader creates a folder and stores all
|
||||||
pictures's captions and the current **profile picture** there. If an
|
posts along with the pictures's captions and the current **profile picture**
|
||||||
already-downloaded profile has been renamed, Instaloader automatically **finds
|
there. If an already-downloaded profile has been renamed, Instaloader
|
||||||
it by its unique ID** and renames the folder likewise.
|
automatically **finds it by its unique ID** and renames the folder likewise.
|
||||||
|
|
||||||
.. option:: --profile-pic-only
|
.. option:: --profile-pic-only
|
||||||
|
|
||||||
Only download profile picture.
|
Only download profile picture.
|
||||||
|
|
||||||
|
.. option:: --no-profile-pic
|
||||||
|
|
||||||
|
Do not download profile picture.
|
||||||
|
|
||||||
.. option:: --no-videos
|
.. option:: --no-videos
|
||||||
|
|
||||||
Do not download videos.
|
Do not download videos.
|
||||||
|
|
||||||
|
.. option:: --no-video-thumbnails
|
||||||
|
|
||||||
|
Do not download thumbnails of videos.
|
||||||
|
|
||||||
.. option:: --geotags
|
.. option:: --geotags
|
||||||
|
|
||||||
**Download geotags** when available. Geotags are stored as a text file with
|
**Download geotags** when available. Geotags are stored as a text file with
|
||||||
@@ -68,7 +77,8 @@ it by its unique ID** and renames the folder likewise.
|
|||||||
.. option:: --stories-only
|
.. option:: --stories-only
|
||||||
|
|
||||||
Rather than downloading regular posts of each specified profile, only
|
Rather than downloading regular posts of each specified profile, only
|
||||||
download stories. Requires :option:`--login`.
|
download stories. Requires :option:`--login`. Does not imply
|
||||||
|
:option:`--no-profile-pic`.
|
||||||
|
|
||||||
.. option:: --only-if filter
|
.. option:: --only-if filter
|
||||||
|
|
||||||
@@ -135,7 +145,7 @@ How to Download
|
|||||||
Prefix of filenames. Posts are stored in the directory whose pattern is given
|
Prefix of filenames. Posts are stored in the directory whose pattern is given
|
||||||
with ``--dirname-pattern``. ``{profile}`` is replaced by the profile name,
|
with ``--dirname-pattern``. ``{profile}`` is replaced by the profile name,
|
||||||
``{target}`` is replaced by the target you specified, i.e. either ``:feed``,
|
``{target}`` is replaced by the target you specified, i.e. either ``:feed``,
|
||||||
``#hashtag`` or the profile name. Also, the fields ``{date}`` and
|
``#hashtag`` or the profile name. Also, the fields ``{date}``, ``{date_utc}`` and
|
||||||
``{shortcode}`` can be specified. In case of not downloading stories, the
|
``{shortcode}`` can be specified. In case of not downloading stories, the
|
||||||
attributes of the :class:`.Post` class can be used in addition, e.g.
|
attributes of the :class:`.Post` class can be used in addition, e.g.
|
||||||
``{post.owner_id}`` or ``{post.mediaid}``.
|
``{post.owner_id}`` or ``{post.mediaid}``.
|
||||||
|
|||||||
+26
-8
@@ -18,7 +18,11 @@
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import sphinx_bootstrap_theme
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('..'))
|
sys.path.insert(0, os.path.abspath('..'))
|
||||||
|
|
||||||
# -- General configuration ------------------------------------------------
|
# -- General configuration ------------------------------------------------
|
||||||
@@ -132,16 +136,20 @@ todo_include_todos = False
|
|||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
#
|
#
|
||||||
html_theme = 'alabaster'
|
html_theme = 'bootstrap'
|
||||||
|
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
# documentation.
|
# documentation.
|
||||||
#
|
#
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
'show_powered_by': False,
|
'navbar_site_name': 'Site Contents',
|
||||||
'sidebar_width': '290px',
|
'navbar_pagenav_name': 'Page Contents',
|
||||||
'page_width': '935px' }
|
'navbar_pagenav': True,
|
||||||
|
'navbar_sidebarrel': True,
|
||||||
|
'nosidebar': True,
|
||||||
|
}
|
||||||
|
|
||||||
# Add any paths that contain custom themes here, relative to this directory.
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
# html_theme_path = []
|
# html_theme_path = []
|
||||||
@@ -158,13 +166,13 @@ html_theme_options = {
|
|||||||
# The name of an image file (relative to this directory) to place at the top
|
# The name of an image file (relative to this directory) to place at the top
|
||||||
# of the sidebar.
|
# of the sidebar.
|
||||||
#
|
#
|
||||||
# html_logo = None
|
html_logo = "logo.png"
|
||||||
|
|
||||||
# The name of an image file (relative to this directory) to use as a favicon of
|
# The name of an image file (relative to this directory) to use as a favicon of
|
||||||
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||||
# pixels large.
|
# pixels large.
|
||||||
#
|
#
|
||||||
# html_favicon = None
|
html_favicon = "favicon.ico"
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
@@ -190,7 +198,8 @@ html_static_path = ['_static']
|
|||||||
|
|
||||||
# Custom sidebar templates, maps document names to template names.
|
# Custom sidebar templates, maps document names to template names.
|
||||||
#
|
#
|
||||||
html_sidebars = {'**': ["caption.html", "globaltoc.html", "relations.html", "links.html"] }
|
#html_sidebars = {'**': ["relations.html", "links.html"] }
|
||||||
|
html_sidebars = {}
|
||||||
|
|
||||||
# Additional templates that should be rendered to pages, maps page names to
|
# Additional templates that should be rendered to pages, maps page names to
|
||||||
# template names.
|
# template names.
|
||||||
@@ -203,7 +212,7 @@ html_domain_indices = False
|
|||||||
|
|
||||||
# If false, no index is generated.
|
# If false, no index is generated.
|
||||||
#
|
#
|
||||||
html_use_index = False
|
html_use_index = True
|
||||||
|
|
||||||
# If true, the index is split into individual pages for each letter.
|
# If true, the index is split into individual pages for each letter.
|
||||||
#
|
#
|
||||||
@@ -352,3 +361,12 @@ texinfo_documents = [
|
|||||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||||
#
|
#
|
||||||
# texinfo_no_detailmenu = False
|
# texinfo_no_detailmenu = False
|
||||||
|
|
||||||
|
|
||||||
|
current_release = subprocess.check_output(["git", "describe", "--abbrev=0"]).decode("ascii")[1:-1]
|
||||||
|
current_release_date = subprocess.check_output(["git", "log", "-1", "--tags", "--format=%ad", "--date=format:%e %b %Y"]).decode("ascii")[:-1]
|
||||||
|
|
||||||
|
html_context = {'current_release': current_release, 'current_release_date': current_release_date}
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
app.add_stylesheet("style.css")
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
Contributing to Instaloader
|
||||||
|
===========================
|
||||||
|
|
||||||
|
As an open source project, Instaloader heavily depends on the contributions from
|
||||||
|
its community. In this document, we advise on how you may help Instaloader to
|
||||||
|
become an even greater tool.
|
||||||
|
|
||||||
|
Instaloader's development is organized on
|
||||||
|
`GitHub <https://github.com/instaloader/instaloader>`__, where Issues and Pull
|
||||||
|
Requests are discussed.
|
||||||
|
|
||||||
|
Reporting Bugs
|
||||||
|
--------------
|
||||||
|
|
||||||
|
If you encounter a bug, do not hesitate to report it in our
|
||||||
|
`Issue Tracker <https://github.com/instaloader/instaloader/issues>`__. Since
|
||||||
|
Instaloader is actively developed, the majority of bugs is fixed within only
|
||||||
|
**4 days** after being reported. When reporting a problem, please keep the
|
||||||
|
following in mind:
|
||||||
|
|
||||||
|
- Ensure you **use the latest version** of Instaloader. The currently-installed
|
||||||
|
version can be found out with ``instaloader --version``.
|
||||||
|
|
||||||
|
- Briefly **check whether the bug has already been reported**. If you find an
|
||||||
|
issue reporting the same bug you encountered, comment there rather than
|
||||||
|
opening a new issue. However, if unsure, it is advised to create a new issue.
|
||||||
|
|
||||||
|
- State **how the bug can be reproduced**, i.e. how Instaloader was invoked
|
||||||
|
when the problem occured (of course, you may anonymize profile names etc.).
|
||||||
|
|
||||||
|
- Include all **error messages and tracebacks** in the report.
|
||||||
|
|
||||||
|
- If not obvious, describe **which behavior you expected**
|
||||||
|
instead of what actually happened.
|
||||||
|
|
||||||
|
- If you think an issue has been closed accidentally or inappropriately, feel
|
||||||
|
free to reopen it.
|
||||||
|
|
||||||
|
Writing Code or Improving the Documentation
|
||||||
|
-------------------------------------------
|
||||||
|
|
||||||
|
Changes of the Instaloader source can be proposed as a
|
||||||
|
`Pull Request <https://github.com/instaloader/instaloader/pulls>`__. There are only
|
||||||
|
few things to consider:
|
||||||
|
|
||||||
|
- Sometimes, the most current code is not in the ``master`` branch. Check that
|
||||||
|
you forked from the most recent branch.
|
||||||
|
|
||||||
|
- We use `Pylint <https://www.pylint.org/>`__ for error and syntax checking of
|
||||||
|
``instaloader.py``. The file ``.travis.yml`` in the project's root directory
|
||||||
|
shows how it is invoked. Note that sometimes it might be better to disable a
|
||||||
|
warning rather than adapting the code to Pylint's desires.
|
||||||
|
|
||||||
|
- The documentation source is located in the ``docs`` folder. The file
|
||||||
|
``cli-options.rst`` is merely an RST-formatted copy of ``ìnstaloader --help``
|
||||||
|
output, of which the source is near the bottom of ``instaloader.py``.
|
||||||
|
|
||||||
|
- Feel free to contact us, even if you "only" have Proof-of-Concepts or
|
||||||
|
not-fully integrated changes. They already might be an advance for the
|
||||||
|
project.
|
||||||
|
|
||||||
|
Suggesting Features
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
If you have an idea of how Instaloader should be enhanced, but do not want to
|
||||||
|
implement the feature yourself, feel free to open a ticket in our
|
||||||
|
`Issue Tracker <https://github.com/instaloader/instaloader/issues>`__.
|
||||||
|
Please consider the following:
|
||||||
|
|
||||||
|
- Instaloader already has plenty of features. **Check the documentation**
|
||||||
|
beforehand to ensure your desired suggestion is not already implemented.
|
||||||
|
|
||||||
|
- Briefly **ensure that your idea has not already been suggested**. If you find
|
||||||
|
an issue suggesting the same or a similar feature, share your thoughts in a
|
||||||
|
comment there, instead of opening a new issue.
|
||||||
|
|
||||||
|
- If possible, provide us a **use case of the feature**: How could the user
|
||||||
|
invoke the new function? Which problem would it solve? If new information is
|
||||||
|
obtained, how would it be further processed?
|
||||||
|
|
||||||
|
- **Be patient**. Naturally, bugs and pull requests have a higher priority than
|
||||||
|
feature suggestions. Keep in mind that this is a free software project, and
|
||||||
|
unfortunately we only have limited time to work on it.
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 330 KiB |
+18
-13
@@ -1,8 +1,11 @@
|
|||||||
.. meta::
|
.. meta::
|
||||||
:description:
|
:description:
|
||||||
Command line tool to download pictures (and videos) from Instagram.
|
Free command line tool to download photos from Instagram.
|
||||||
Instaloader downloads public and private profiles, hashtags, user stories,
|
Scrapes public and private profiles, hashtags, stories, feeds,
|
||||||
feeds, comments, geotags, captions and other metadata of each post.
|
saved media, and their metadata, comments and captions.
|
||||||
|
Written in Python.
|
||||||
|
|
||||||
|
.. title:: Instaloader — Download Instagram Photos and Metadata
|
||||||
|
|
||||||
Instaloader
|
Instaloader
|
||||||
===========
|
===========
|
||||||
@@ -20,8 +23,8 @@ With `Python <https://www.python.org/>`__ installed, do::
|
|||||||
|
|
||||||
**Instaloader**
|
**Instaloader**
|
||||||
|
|
||||||
- downloads **public and private profiles, hashtags, user stories and
|
- downloads **public and private profiles, hashtags, user stories,
|
||||||
feeds**,
|
feeds and saved media**,
|
||||||
|
|
||||||
- downloads **comments, geotags and captions** of each post,
|
- downloads **comments, geotags and captions** of each post,
|
||||||
|
|
||||||
@@ -31,18 +34,19 @@ With `Python <https://www.python.org/>`__ installed, do::
|
|||||||
- allows **fine-grained customization** of filters and where to store
|
- allows **fine-grained customization** of filters and where to store
|
||||||
downloaded media,
|
downloaded media,
|
||||||
|
|
||||||
- is free `open source <https://github.com/Thammus/instaloader>`__
|
- is free `open source <https://github.com/instaloader/instaloader>`__
|
||||||
software written in Python.
|
software written in Python.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
instaloader [--comments] [--geotags] [--stories]
|
instaloader [--comments] [--geotags] [--stories]
|
||||||
[--login YOUR-USERNAME] [--fast-update]
|
[--login YOUR-USERNAME] [--fast-update]
|
||||||
profile | "#hashtag" | :stories | :feed
|
profile | "#hashtag" |
|
||||||
|
:stories | :feed | :saved
|
||||||
|
|
||||||
|
|
||||||
Table of Contents
|
Instaloader Documentation
|
||||||
-----------------
|
-------------------------
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
@@ -51,14 +55,15 @@ Table of Contents
|
|||||||
basic-usage
|
basic-usage
|
||||||
cli-options
|
cli-options
|
||||||
as-module
|
as-module
|
||||||
|
contributing
|
||||||
|
|
||||||
Useful Links
|
Useful Links
|
||||||
------------
|
------------
|
||||||
|
|
||||||
- `Git Repository (on GitHub) <https://github.com/Thammus/instaloader>`__
|
- `Git Repository (on GitHub) <https://github.com/instaloader/instaloader>`__
|
||||||
- `PyPI Project Page <https://pypi.python.org/pypi/instaloader>`__
|
- `PyPI Project Page <https://pypi.org/project/instaloader/>`__
|
||||||
- `Issue Tracker / Bug Tracker <https://github.com/Thammus/instaloader/issues>`__
|
- `Issue Tracker / Bug Tracker <https://github.com/instaloader/instaloader/issues>`__
|
||||||
- `Version History <https://github.com/Thammus/instaloader/releases>`__
|
- `Version History <https://github.com/instaloader/instaloader/releases>`__
|
||||||
|
|
||||||
.. include:: ../README.rst
|
.. include:: ../README.rst
|
||||||
:start-after: disclaimer-start
|
:start-after: disclaimer-start
|
||||||
|
|||||||
+17
-6
@@ -12,11 +12,11 @@ installed, you may install Instaloader using
|
|||||||
pip3 install instaloader
|
pip3 install instaloader
|
||||||
|
|
||||||
Alternatively, to get the most current version of Instaloader from our
|
Alternatively, to get the most current version of Instaloader from our
|
||||||
`Git repository <https://github.com/Thammus/instaloader>`__:
|
`Git repository <https://github.com/instaloader/instaloader>`__:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pip3 install git+https://github.com/Thammus/instaloader
|
pip3 install git+https://github.com/instaloader/instaloader
|
||||||
|
|
||||||
(pass ``--upgrade`` to upgrade if Instaloader is already installed)
|
(pass ``--upgrade`` to upgrade if Instaloader is already installed)
|
||||||
|
|
||||||
@@ -24,7 +24,18 @@ Instaloader requires
|
|||||||
`requests <http://python-requests.org/>`__, which
|
`requests <http://python-requests.org/>`__, which
|
||||||
will be installed automatically, if it is not already installed.
|
will be installed automatically, if it is not already installed.
|
||||||
|
|
||||||
If you do not want to use pip, even though it is highly recommended,
|
**Alternative methods for installing Instaloader:**
|
||||||
and prefer installing Instaloader manually,
|
|
||||||
`Download the Source <https://github.com/Thammus/instaloader/releases>`__,
|
- If you do not want to use pip, even though it is highly recommended,
|
||||||
extract the Zip or Tarball and execute ``instaloader.py`` from there.
|
and prefer to **install Instaloader manually**,
|
||||||
|
`Download the Source <https://github.com/instaloader/instaloader/releases/latest>`__,
|
||||||
|
extract the Zip or Tarball and execute ``instaloader.py`` from there.
|
||||||
|
|
||||||
|
- On **Arch Linux**, you may install Instaloader using the
|
||||||
|
`Instaloader AUR package <https://aur.archlinux.org/packages/instaloader/>`__.
|
||||||
|
|
||||||
|
- On **Gentoo Linux**, you may install Instaloader using the
|
||||||
|
`Instaloader Ebuild <https://bugs.gentoo.org/642100>`__.
|
||||||
|
|
||||||
|
- On **Windows 10**, you may download the standalone executable from the
|
||||||
|
`current release page <https://github.com/instaloader/instaloader/releases/latest>`__.
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
+117
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
@@ -1 +1,4 @@
|
|||||||
|
requests
|
||||||
|
sphinx
|
||||||
sphinx-autodoc-typehints
|
sphinx-autodoc-typehints
|
||||||
|
sphinx-bootstrap-theme
|
||||||
|
|||||||
+426
-174
File diff suppressed because it is too large
Load Diff
@@ -38,7 +38,7 @@ setup(
|
|||||||
name='instaloader',
|
name='instaloader',
|
||||||
version=get_version(),
|
version=get_version(),
|
||||||
py_modules=['instaloader'],
|
py_modules=['instaloader'],
|
||||||
url='https://instaloader.readthedocs.io/',
|
url='https://instaloader.github.io/',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
author='Alexander Graf, André Koch-Kramer',
|
author='Alexander Graf, André Koch-Kramer',
|
||||||
author_email='mail@agraf.me, koch-kramer@web.de',
|
author_email='mail@agraf.me, koch-kramer@web.de',
|
||||||
|
|||||||
Reference in New Issue
Block a user