Add shortcut syntax to mf2 script for fetching pages over HTTPS

This commit is contained in:
Danielle McLean 2017-11-09 10:08:39 +11:00
parent 9fda00f465
commit cdd3e5fc11
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -12,6 +12,8 @@ def parse(**kwargs):
for arg in args:
if arg.startswith('//'):
arg = 'https:' + arg
if arg.startswith('http'):
doc = parse(url=arg)
elif arg == '-':