adapt the script to extract the URL and schema