mirror of
https://github.com/instaloader/instaloader.git
synced 2024-08-17 12:19:38 +02:00
Further clarify meaning of --count
This commit is contained in:
parent
fdb8e94c64
commit
655dbb552d
@ -107,7 +107,8 @@ be downloaded.
|
||||
--geotags Also **download geotags** and store Google Maps links in
|
||||
separate textfiles.
|
||||
--count COUNT If used with ``#hashtag``, ``:feed-all`` or
|
||||
``:feed-liked``: Do not download more than COUNT posts.
|
||||
``:feed-liked``: Do not attempt to download more than COUNT
|
||||
posts.
|
||||
--quiet Do not output any messages except warnings and errors. This
|
||||
option makes Instaloader **suitable as a cron job**.
|
||||
--no-sleep Normally, Instaloader waits a few seconds between requests
|
||||
|
@ -598,10 +598,10 @@ def download_hashtag(hashtag: str, session: requests.Session,
|
||||
if max_count is not None and count > max_count:
|
||||
return
|
||||
_log('[{0:3d}] #{1} '.format(count, hashtag), end='', flush=True, quiet=quiet)
|
||||
count += 1
|
||||
if filter_func is not None and filter_func(node):
|
||||
_log('<skipped>', quiet=quiet)
|
||||
continue
|
||||
count += 1
|
||||
downloaded = download_node(node, session, '#{0}'.format(hashtag),
|
||||
download_videos=download_videos, geotags=geotags, sleep=sleep,
|
||||
shorter_output=shorter_output, quiet=quiet)
|
||||
@ -824,7 +824,7 @@ def main():
|
||||
parser.add_argument('-F', '--fast-update', action='store_true',
|
||||
help='Abort at encounter of first already-downloaded picture')
|
||||
parser.add_argument('-c', '--count',
|
||||
help='Do not download more than COUNT posts. '
|
||||
help='Do not attempt to download more than COUNT posts. '
|
||||
'Applies only to #hashtag, :feed-all and :feed-liked.')
|
||||
parser.add_argument('-S', '--no-sleep', action='store_true',
|
||||
help='Do not sleep between actual downloads of pictures')
|
||||
@ -835,7 +835,7 @@ def main():
|
||||
'if login credentials are needed but not given.')
|
||||
args = parser.parse_args()
|
||||
try:
|
||||
download_profiles(args.profile, args.login, args.password, args.sessionfile, args.count,
|
||||
download_profiles(args.profile, args.login, args.password, args.sessionfile, int(args.count),
|
||||
args.profile_pic_only, not args.skip_videos, args.geotags, args.fast_update,
|
||||
not args.no_sleep, args.shorter_output, args.quiet)
|
||||
except InstaloaderException as err:
|
||||
|
Loading…
Reference in New Issue
Block a user