Commit 96272b24 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

ADD urllib.request

parent 0e8789e9
......@@ -14,6 +14,7 @@
import argparse, os
from subprocess import Popen, PIPE
import datetime, json
import urllib.request as req
......@@ -90,6 +91,11 @@ if __name__ == "__main__":
if None != indlimit:
for q in querysplit:
qarg = q.split("=")
nval = req.pathname2url(qarg[1])
querysplit[querysplit.index(q)] = qarg[0]+"="+nval
urlbase = ''+collection+'/features?_pretty=1&limit=500&'+"&".join(querysplit)
qoutfile = download_json(urlbase)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment