From cdf791c87251189a4e23986c7b0f4cc883ddce50 Mon Sep 17 00:00:00 2001 From: Reederda <7991086+reederda@users.noreply.github.com> Date: Tue, 18 Aug 2020 10:19:34 -0600 Subject: [PATCH] Changed -s flag to str This allows starting from specific favorites pages, which requires an input of /next --- furaffinity-dl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/furaffinity-dl.py b/furaffinity-dl.py index 85701d7..1d18747 100755 --- a/furaffinity-dl.py +++ b/furaffinity-dl.py @@ -37,8 +37,8 @@ parser.add_argument('username', metavar='username', type=str, nargs='?', help='username of the furaffinity user') parser.add_argument('-o', metavar='output', dest='output', type=str, default='.', help="output directory") parser.add_argument('-c', metavar='cookies', dest='cookies', type=str, default='', help="path to a NetScape cookies file") -parser.add_argument('-u', metavar='useragent', dest='ua', type=str, default='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.7) Gecko/20100101 Firefox/68.7', help="Your browsers useragent, may be required, depending on your luck") -parser.add_argument('-s', metavar='start', dest='start', type=int, default=1, help="page number to start from") +parser.add_argument('-u', metavar='useragent', dest='ua', type=str, default='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.7) Gecko/20100101 Firefox/68.7', help="Your browser's useragent, may be required, depending on your luck") +parser.add_argument('-s', metavar='start', dest='start', type=str, default=1, help="page number to start from") args = parser.parse_args() if args.username is None: @@ -163,7 +163,7 @@ while True: account_username = s.find(class_='loggedin_user_avatar').attrs.get('alt') print('Logged in as', account_username) else: - print('Not logged in, NSFW content is unaccessible') + print('Not logged in, NSFW content is inaccessible') # System messages if s.find(class_='notice-message') is not None: