mirror of
https://github.com/instaloader/instaloader.git
synced 2024-08-18 04:39:39 +02:00
doc: Note new features with versionadded
This commit is contained in:
parent
b91e73b090
commit
0dcc912987
@ -96,6 +96,8 @@ Instaloader supports the following targets:
|
|||||||
The single **post** with the given shortcode. Must be preceeded by ``--`` in
|
The single **post** with the given shortcode. Must be preceeded by ``--`` in
|
||||||
the argument list to not be mistaken as an option flag.
|
the argument list to not be mistaken as an option flag.
|
||||||
|
|
||||||
|
.. versionadded:: 4.1
|
||||||
|
|
||||||
.. targets-end
|
.. targets-end
|
||||||
|
|
||||||
Instaloader goes through all media matching the specified targets and
|
Instaloader goes through all media matching the specified targets and
|
||||||
|
@ -47,6 +47,8 @@ What to Download of each Post
|
|||||||
:option:`--fast-update`. Implies :option:`--no-video-thumbnails`, does not
|
:option:`--fast-update`. Implies :option:`--no-video-thumbnails`, does not
|
||||||
imply :option:`--no-videos`.
|
imply :option:`--no-videos`.
|
||||||
|
|
||||||
|
.. versionadded:: 4.1
|
||||||
|
|
||||||
.. option:: --no-videos, -V
|
.. option:: --no-videos, -V
|
||||||
|
|
||||||
Do not download videos.
|
Do not download videos.
|
||||||
@ -117,6 +119,8 @@ What to Download of each Profile
|
|||||||
|
|
||||||
Also download posts where each profile is tagged.
|
Also download posts where each profile is tagged.
|
||||||
|
|
||||||
|
.. versionadded:: 4.1
|
||||||
|
|
||||||
.. option:: --stories-only
|
.. option:: --stories-only
|
||||||
|
|
||||||
.. deprecated:: 4.1
|
.. deprecated:: 4.1
|
||||||
@ -228,17 +232,18 @@ Miscellaneous Options
|
|||||||
|
|
||||||
.. option:: +args.txt
|
.. option:: +args.txt
|
||||||
|
|
||||||
Read arguments from file `args.txt`, a shortcut to provide argument from
|
Read arguments from file `args.txt`, a shortcut to provide argument from
|
||||||
file rather than command-line. This provide a convient way to hide login
|
file rather than command-line. This provide a convient way to hide login
|
||||||
info from CLI. and also can use for simplify managment of long arguments.
|
info from CLI. and also can use for simplify managment of long arguments.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
text file should separate arg with line break.
|
text file should separate arg with line break.
|
||||||
|
|
||||||
args.txt example::
|
args.txt example::
|
||||||
|
|
||||||
--login MYUSENAME
|
--login MYUSENAME
|
||||||
--password MYPASSWORD
|
--password MYPASSWORD
|
||||||
--fast-update
|
--fast-update
|
||||||
|
|
||||||
|
.. versionadded:: 4.1
|
||||||
|
@ -630,6 +630,9 @@ class Instaloader:
|
|||||||
def download_tagged(self, profile: Profile, fast_update: bool = False,
|
def download_tagged(self, profile: Profile, fast_update: bool = False,
|
||||||
target: Optional[str] = None,
|
target: Optional[str] = None,
|
||||||
post_filter: Optional[Callable[[Post], bool]] = None) -> None:
|
post_filter: Optional[Callable[[Post], bool]] = None) -> None:
|
||||||
|
"""Download all posts where a profile is tagged.
|
||||||
|
|
||||||
|
.. versionadded:: 4.1"""
|
||||||
if target is None:
|
if target is None:
|
||||||
target = profile.username + ':tagged'
|
target = profile.username + ':tagged'
|
||||||
self.context.log("Retrieving tagged posts for profile {}.".format(profile.username))
|
self.context.log("Retrieving tagged posts for profile {}.".format(profile.username))
|
||||||
@ -721,7 +724,9 @@ class Instaloader:
|
|||||||
:param stories: :option:`--stories`.
|
:param stories: :option:`--stories`.
|
||||||
:param fast_update: :option:`--fast-update`.
|
:param fast_update: :option:`--fast-update`.
|
||||||
:param post_filter: :option:`--post-filter`.
|
:param post_filter: :option:`--post-filter`.
|
||||||
:param storyitem_filter: :option:`--post-filter`."""
|
:param storyitem_filter: :option:`--post-filter`.
|
||||||
|
|
||||||
|
.. versionadded:: 4.1"""
|
||||||
|
|
||||||
for profile in profiles:
|
for profile in profiles:
|
||||||
with self.context.error_catcher(profile.username):
|
with self.context.error_catcher(profile.username):
|
||||||
|
@ -614,7 +614,9 @@ class Profile:
|
|||||||
self._metadata('edge_saved_media')))
|
self._metadata('edge_saved_media')))
|
||||||
|
|
||||||
def get_tagged_posts(self) -> Iterator[Post]:
|
def get_tagged_posts(self) -> Iterator[Post]:
|
||||||
"""Retrieve all posts where a profile is tagged."""
|
"""Retrieve all posts where a profile is tagged.
|
||||||
|
|
||||||
|
.. versionadded:: 4.0.7"""
|
||||||
self._obtain_metadata()
|
self._obtain_metadata()
|
||||||
yield from (Post(self._context, node, self if int(node['owner']['id']) == self.userid else None) for node in
|
yield from (Post(self._context, node, self if int(node['owner']['id']) == self.userid else None) for node in
|
||||||
self._context.graphql_node_list("e31a871f7301132ceaab56507a66bbb7",
|
self._context.graphql_node_list("e31a871f7301132ceaab56507a66bbb7",
|
||||||
|
Loading…
Reference in New Issue
Block a user