optionally pass an argument to post a comic by number
This commit is contained in:
parent
37c924063a
commit
ce3ddc2d0d
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ cachedir = os.path.join(datadir, "cache")
|
|||
seendir = os.path.join(datadir, "seen")
|
||||
|
||||
|
||||
page = request.urlopen(baseurl)
|
||||
if len(sys.argv) > 1 :
|
||||
page = request.urlopen(baseurl+"/comic/"+sys.argv[1])
|
||||
else:
|
||||
page = request.urlopen(baseurl)
|
||||
|
||||
soup = BeautifulSoup(page, features="lxml")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue