diff --git a/docs/basic-usage.rst b/docs/basic-usage.rst index f60cd09..ef7d6d1 100644 --- a/docs/basic-usage.rst +++ b/docs/basic-usage.rst @@ -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 diff --git a/docs/cli-options.rst b/docs/cli-options.rst index ac51d53..34d3511 100644 --- a/docs/cli-options.rst +++ b/docs/cli-options.rst @@ -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 diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py index fc36eaf..551c447 100644 --- a/instaloader/instaloader.py +++ b/instaloader/instaloader.py @@ -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): diff --git a/instaloader/structures.py b/instaloader/structures.py index 208a67d..6336465 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -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",