def persist_get_parameters(url, parameters):
    """
    Attachs query paramaters to an url.
    """
    first = True
    final_url = url
    for key, value in parameters.items():
        if first:
            final_url = "%s?%s=%s" % (final_url, key, value)
            first = False
        else:
            final_url = "%s&%s=%s" % (final_url, key, value)
    return final_url