1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-11-04 09:22:29 +01:00

Clarify --login is required for download followees

This commit is contained in:
Alexander Graf 2017-03-19 12:51:20 +01:00
parent 597e5977b2
commit 23a0e32e8e

View File

@ -646,7 +646,7 @@ def download_profiles(profilelist: List[str], username: Optional[str] = None, pa
try: try:
# Generate set of targets # Generate set of targets
for pentry in profilelist: for pentry in profilelist:
if pentry[0] == '@': if pentry[0] == '@' and username is not None:
_log("Retrieving followees of %s..." % pentry[1:], quiet=quiet) _log("Retrieving followees of %s..." % pentry[1:], quiet=quiet)
followees = get_followees(pentry[1:], session) followees = get_followees(pentry[1:], session)
targets.update([followee['username'] for followee in followees]) targets.update([followee['username'] for followee in followees])
@ -688,9 +688,9 @@ def main():
parser = ArgumentParser(description=__doc__, parser = ArgumentParser(description=__doc__,
epilog="Report issues at https://github.com/Thammus/instaloader/issues.") epilog="Report issues at https://github.com/Thammus/instaloader/issues.")
parser.add_argument('profile', nargs='*', parser.add_argument('profile', nargs='*',
help='Name of profile to download; @<profile> to download all followees of ' help='Name of profile to download; If --login is given: @<profile> to download all followees of '
'<profile>; or the special targets :feed-all or :feed-liked to ' '<profile>; or the special targets :feed-all or :feed-liked to '
'download pictures from your feed if --login is given (using ' 'download pictures from your feed (using '
'--fast-update is recommended).') '--fast-update is recommended).')
parser.add_argument('--version', action='version', parser.add_argument('--version', action='version',
version=__version__) version=__version__)