Skip to content

Commit

Permalink
profiles can be skipped by commenting them out and update to 20190101…
Browse files Browse the repository at this point in the history
… default start date
  • Loading branch information
Donearm committed Nov 18, 2019
1 parent e7bd355 commit e0a1770
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions instagram_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

__author__ = "Gianluca Fiore"
__license__ = "GPL"
__version__ = "0.2"
__date__ = "20190309"
__version__ = "0.3"
__date__ = "20191118"
__email__ = "[email protected]"
__status__ = "beta"

Expand All @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e0a1770

Please sign in to comment.