optionally pass an argument to post a comic by number

This commit is contained in:
Antonia 2022-07-27 23:21:51 +02:00
parent 37c924063a
commit ce3ddc2d0d

View file

@ -35,7 +35,11 @@ cachedir = os.path.join(datadir, "cache")
seendir = os.path.join(datadir, "seen") seendir = os.path.join(datadir, "seen")
if len(sys.argv) > 1 :
page = request.urlopen(baseurl+"/comic/"+sys.argv[1])
else:
page = request.urlopen(baseurl) page = request.urlopen(baseurl)
soup = BeautifulSoup(page, features="lxml") soup = BeautifulSoup(page, features="lxml")