title: run python script with html button
body: <p>I have a Python script <code>a.py</code> that prompts for a URL:</p>
  
  <pre><code>url = input('URL: ')
  </code></pre>
  
  <p>It uses modules to check headers for URL validity, takes the valid URL and downloads the first image from the webpage (URL) using Beautiful Soup. It works perfectly as a standalone Python script that I can run in my terminal/command prompt.</p>
  
  <p>What I'd like to build is a webpage that utilizes my Python script and allows users to enter a URL form a web interface. Example:</p>
  
  <pre><code>&lt;input type="text" name="url" /&gt;
  &lt;button&gt;Download&lt;/button&gt;
  </code></pre>
  
  <p>The URL entered from the input would then be passed into the python script when the user clicks on the Download button.</p>