<meta property="og:title" content="Keith's Spotify release date tool">
<meta name="description" content="No need on desktop, but this form will return a track or album's release date for mobile users (sorry I haven't optimized the actual page for mobile use, it's on my todo list">
</head>
<body>
<form action="" method="POST">
<p><strong>Enter a Spotify track or album URL:</strong> <input name="URL" id="URL"></p>
<p><button>Submit</button></p>
</form>
<?php
if($_POST['URL']){
$url=$_POST['URL'];
if(filter_var($url,FILTER_VALIDATE_URL)===FALSE){
die("Sorry, only valid URLs are currently supported. Take it up with Keith! He probably just forgot to make URIs work too. Or maybe what you pasted in isn't valid as either...");
}
# Run Python script (should rewrite in PHP sometime...)