"instaloader -- -SHORTCODE" to fetch single post

Closes #129.
This commit is contained in:
Alexander Graf committed 2018-08-20 14:27:58 +02:00
1 parent f7e6632f68
commit 5f57345f1b
2 files changed
+6

No files matched your search

+2
View File
@@ -133,6 +133,8 @@ def _main(instaloader: Instaloader, targetlist: List[str],
elif target[0] == '#':
instaloader.download_hashtag(hashtag=target[1:], max_count=max_count, fast_update=fast_update,
post_filter=post_filter)
elif target[0] == '-':
instaloader.download_post(Post.from_shortcode(instaloader.context, target[1:]), target)
elif target == ":feed":
instaloader.download_feed_posts(fast_update=fast_update, max_count=max_count,
post_filter=post_filter)