Add shortcut syntax to mf2 script for fetching pages over HTTPS
This commit is contained in:
parent
9fda00f465
commit
cdd3e5fc11
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ def parse(**kwargs):
|
||||||
|
|
||||||
|
|
||||||
for arg in args:
|
for arg in args:
|
||||||
|
if arg.startswith('//'):
|
||||||
|
arg = 'https:' + arg
|
||||||
if arg.startswith('http'):
|
if arg.startswith('http'):
|
||||||
doc = parse(url=arg)
|
doc = parse(url=arg)
|
||||||
elif arg == '-':
|
elif arg == '-':
|
||||||
|
|
Loading…
Reference in a new issue