1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-09-11 16:22:24 +02:00

Further clarify meaning of --count

This commit is contained in:
Alexander Graf 2017-04-22 17:34:49 +02:00
parent fdb8e94c64
commit 655dbb552d
2 changed files with 5 additions and 4 deletions

View File

@ -107,7 +107,8 @@ be downloaded.
--geotags Also **download geotags** and store Google Maps links in --geotags Also **download geotags** and store Google Maps links in
separate textfiles. separate textfiles.
--count COUNT If used with ``#hashtag``, ``:feed-all`` or --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 --quiet Do not output any messages except warnings and errors. This
option makes Instaloader **suitable as a cron job**. option makes Instaloader **suitable as a cron job**.
--no-sleep Normally, Instaloader waits a few seconds between requests --no-sleep Normally, Instaloader waits a few seconds between requests

View File

@ -598,10 +598,10 @@ def download_hashtag(hashtag: str, session: requests.Session,
if max_count is not None and count > max_count: if max_count is not None and count > max_count:
return return
_log('[{0:3d}] #{1} '.format(count, hashtag), end='', flush=True, quiet=quiet) _log('[{0:3d}] #{1} '.format(count, hashtag), end='', flush=True, quiet=quiet)
count += 1
if filter_func is not None and filter_func(node): if filter_func is not None and filter_func(node):
_log('<skipped>', quiet=quiet) _log('<skipped>', quiet=quiet)
continue continue
count += 1
downloaded = download_node(node, session, '#{0}'.format(hashtag), downloaded = download_node(node, session, '#{0}'.format(hashtag),
download_videos=download_videos, geotags=geotags, sleep=sleep, download_videos=download_videos, geotags=geotags, sleep=sleep,
shorter_output=shorter_output, quiet=quiet) shorter_output=shorter_output, quiet=quiet)
@ -824,7 +824,7 @@ def main():
parser.add_argument('-F', '--fast-update', action='store_true', parser.add_argument('-F', '--fast-update', action='store_true',
help='Abort at encounter of first already-downloaded picture') help='Abort at encounter of first already-downloaded picture')
parser.add_argument('-c', '--count', 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.') 'Applies only to #hashtag, :feed-all and :feed-liked.')
parser.add_argument('-S', '--no-sleep', action='store_true', parser.add_argument('-S', '--no-sleep', action='store_true',
help='Do not sleep between actual downloads of pictures') help='Do not sleep between actual downloads of pictures')
@ -835,7 +835,7 @@ def main():
'if login credentials are needed but not given.') 'if login credentials are needed but not given.')
args = parser.parse_args() args = parser.parse_args()
try: 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, args.profile_pic_only, not args.skip_videos, args.geotags, args.fast_update,
not args.no_sleep, args.shorter_output, args.quiet) not args.no_sleep, args.shorter_output, args.quiet)
except InstaloaderException as err: except InstaloaderException as err: