Skip to content

Instantly share code, notes, and snippets.

View acquire_data.py
import argparse
import json
import os
import urllib.parse
from urllib.request import urlopen
def set_query_parameter(url, name, value):
url_parts = list(urllib.parse.urlparse(url))
query = dict(urllib.parse.parse_qsl(url_parts[4]))