Compare commits

...
4 Commits
Author SHA1 Message Date
Alexander Graf 0a039b9c8c Release of version 1.2.2 2017-03-19 14:52:45 +01:00
Alexander Graf b1014bfbfd README: Mention how to install from our Git repo 2017-03-19 14:42:02 +01:00
Alexander Graf d246268630 Retry download anonymously if profile not exists
In case you are blocked by a public profile which you intend to
download, the server responds as if the profile would not exist. Now in
this case, we retry the download without using an anonymous session.
2017-03-19 12:52:07 +01:00
Alexander Graf 23a0e32e8e Clarify --login is required for download followees 2017-03-19 12:51:20 +01:00
3 changed files with 18 additions and 14 deletions
+4 -8
View File
@@ -19,20 +19,16 @@ may install Instaloader using
pip3 install instaloader
Alternatively, you may `download Instaloader from
GitHub <https://github.com/Thammus/instaloader/releases>`__, unzip it
and invoke bundled ``setup.py`` (requiring
`setuptools <https://pypi.python.org/pypi/setuptools>`__) to install it:
Alternatively, to get the most current version of Instaloader from our
`Git repository <https://github.com/Thammus/instaloader>`__:
::
python3 setup.py install [--user]
(pass ``--user`` to install it for your user only instead of globally)
pip3 install git+https://github.com/Thammus/instaloader
Instaloader requires
`requests <https://pypi.python.org/pypi/requests>`__, which
will be installed automatically by setup.py, if not already installed.
will be installed automatically, if it is not already installed.
How to automatically download pictures from Instagram
-----------------------------------------------------
+13 -5
View File
@@ -646,7 +646,7 @@ def download_profiles(profilelist: List[str], username: Optional[str] = None, pa
try:
# Generate set of targets
for pentry in profilelist:
if pentry[0] == '@':
if pentry[0] == '@' and username is not None:
_log("Retrieving followees of %s..." % pentry[1:], quiet=quiet)
followees = get_followees(pentry[1:], session)
targets.update([followee['username'] for followee in followees])
@@ -670,8 +670,16 @@ def download_profiles(profilelist: List[str], username: Optional[str] = None, pa
# Iterate through targets list and download them
for target in targets:
try:
download(target, session, profile_pic_only, download_videos,
geotags, fast_update, shorter_output, sleep, quiet)
try:
download(target, session, profile_pic_only, download_videos,
geotags, fast_update, shorter_output, sleep, quiet)
except ProfileNotExistsException as err:
if username is not None:
_log("\"Profile not exists\" - Trying again anonymously, helps in case you are just blocked")
download(target, get_anonymous_session(), profile_pic_only, download_videos,
geotags, fast_update, shorter_output, sleep, quiet)
else:
raise err
except NonfatalException as err:
failedtargets.append(target)
print(err, file=sys.stderr)
@@ -688,9 +696,9 @@ def main():
parser = ArgumentParser(description=__doc__,
epilog="Report issues at https://github.com/Thammus/instaloader/issues.")
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 '
'download pictures from your feed if --login is given (using '
'download pictures from your feed (using '
'--fast-update is recommended).')
parser.add_argument('--version', action='version',
version=__version__)
+1 -1
View File
@@ -8,7 +8,7 @@ if sys.version_info < (3, 5):
setup(
name='instaloader',
version='1.2.1',
version='1.2.2',
py_modules=['instaloader'],
url='https://github.com/Thammus/instaloader',
license='MIT',