From e0a1770acac7ab274a8d02b554984b40a761d2db Mon Sep 17 00:00:00 2001 From: Gianluca Fiore Date: Mon, 18 Nov 2019 11:36:39 +0100 Subject: [PATCH] profiles can be skipped by commenting them out and update to 20190101 default start date --- instagram_downloader.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/instagram_downloader.py b/instagram_downloader.py index 5463d00..611c3c6 100755 --- a/instagram_downloader.py +++ b/instagram_downloader.py @@ -12,8 +12,8 @@ __author__ = "Gianluca Fiore" __license__ = "GPL" -__version__ = "0.2" -__date__ = "20190309" +__version__ = "0.3" +__date__ = "20191118" __email__ = "forod.g@gmail.com" __status__ = "beta" @@ -26,7 +26,7 @@ import instaloader MAINPATH='/mnt/documents/c/Tempstuff/instagram/' -DEFAULTSTARTDATE = [2018, 1, 1] +DEFAULTSTARTDATE = [2019, 1, 1] def argument_parser(): cli_parser = argparse.ArgumentParser() @@ -77,6 +77,9 @@ def massDownload(instance, startdate, enddate, operation): content = f.readlines() content = ([x.strip() for x in content]) # remove whitespace characters for profilename in content: + if profilename.startswith('#'): + # commenting out a profilename in FILE will mean skipping it + continue if operation == "update": lastcheckeddate = lastcheck_date(profilename + "/lastcheck") startdate = datetime(lastcheckeddate[0], lastcheckeddate[1], lastcheckeddate[2]) + timedelta(days=1)