mirror of
https://github.com/instaloader/instaloader.git
synced 2026-10-16 13:48:03 -07:00
@@ -99,7 +99,7 @@ Instaloader supports the following targets:
|
|||||||
to **download IGTV videos**.
|
to **download IGTV videos**.
|
||||||
|
|
||||||
- ``"#hashtag"``
|
- ``"#hashtag"``
|
||||||
Posts with a certain **hashtag** (the quotes are usually necessary).
|
Posts with a certain **hashtag** (the quotes are usually necessary). Requires :ref:`login<login>`.
|
||||||
|
|
||||||
- ``%location id``
|
- ``%location id``
|
||||||
Posts tagged with a given location; the location ID is the numerical ID
|
Posts tagged with a given location; the location ID is the numerical ID
|
||||||
|
|||||||
@@ -1215,6 +1215,7 @@ class Instaloader:
|
|||||||
Use :meth:`Hashtag.get_posts_resumable`."""
|
Use :meth:`Hashtag.get_posts_resumable`."""
|
||||||
return Hashtag.from_name(self.context, hashtag).get_posts_resumable()
|
return Hashtag.from_name(self.context, hashtag).get_posts_resumable()
|
||||||
|
|
||||||
|
@_requires_login
|
||||||
def download_hashtag(self, hashtag: Union[Hashtag, str],
|
def download_hashtag(self, hashtag: Union[Hashtag, str],
|
||||||
max_count: Optional[int] = None,
|
max_count: Optional[int] = None,
|
||||||
post_filter: Optional[Callable[[Post], bool]] = None,
|
post_filter: Optional[Callable[[Post], bool]] = None,
|
||||||
|
|||||||
@@ -1862,7 +1862,9 @@ class Hashtag:
|
|||||||
return self._node["name"].lower()
|
return self._node["name"].lower()
|
||||||
|
|
||||||
def _query(self, params):
|
def _query(self, params):
|
||||||
json_response = self._context.get_json("explore/tags/{0}/".format(self.name), params)
|
json_response = self._context.get_iphone_json(
|
||||||
|
"api/v1/tags/web_info/", {**params, "tag_name": self.name}
|
||||||
|
)
|
||||||
return json_response["graphql"]["hashtag"] if "graphql" in json_response else json_response["data"]
|
return json_response["graphql"]["hashtag"] if "graphql" in json_response else json_response["data"]
|
||||||
|
|
||||||
def _obtain_metadata(self):
|
def _obtain_metadata(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user