1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-07-14 23:00:06 +02:00

doc: Note new features with versionadded

This commit is contained in:
Alexander Graf 2018-08-23 17:25:28 +02:00
parent b91e73b090
commit 0dcc912987
4 changed files with 25 additions and 11 deletions

View File

@ -96,6 +96,8 @@ Instaloader supports the following targets:
The single **post** with the given shortcode. Must be preceeded by ``--`` in
the argument list to not be mistaken as an option flag.
.. versionadded:: 4.1
.. targets-end
Instaloader goes through all media matching the specified targets and

View File

@ -47,6 +47,8 @@ What to Download of each Post
:option:`--fast-update`. Implies :option:`--no-video-thumbnails`, does not
imply :option:`--no-videos`.
.. versionadded:: 4.1
.. option:: --no-videos, -V
Do not download videos.
@ -117,6 +119,8 @@ What to Download of each Profile
Also download posts where each profile is tagged.
.. versionadded:: 4.1
.. option:: --stories-only
.. deprecated:: 4.1
@ -228,17 +232,18 @@ Miscellaneous Options
.. option:: +args.txt
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
info from CLI. and also can use for simplify managment of long arguments.
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
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
--password MYPASSWORD
--fast-update
--login MYUSENAME
--password MYPASSWORD
--fast-update
.. versionadded:: 4.1

View File

@ -630,6 +630,9 @@ class Instaloader:
def download_tagged(self, profile: Profile, fast_update: bool = False,
target: Optional[str] = None,
post_filter: Optional[Callable[[Post], bool]] = None) -> None:
"""Download all posts where a profile is tagged.
.. versionadded:: 4.1"""
if target is None:
target = profile.username + ':tagged'
self.context.log("Retrieving tagged posts for profile {}.".format(profile.username))
@ -721,7 +724,9 @@ class Instaloader:
:param stories: :option:`--stories`.
:param fast_update: :option:`--fast-update`.
: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:
with self.context.error_catcher(profile.username):

View File

@ -614,7 +614,9 @@ class Profile:
self._metadata('edge_saved_media')))
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()
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",