title: how to send post request for forms without action?
body: <p>So I'm trying to login Spotify with my code in python but the problem is I can't find the url I should post the request to because there isn't action attribute in form. <a href="https://accounts.spotify.com/en-CA/login?continue=https:%2F%2Fwww.spotify.com%2Fca-en%2Flogged-in%2F" rel="nofollow noreferrer">login url</a></p>
  
  <p>here is the the form code:</p>
  
  <pre><code>  &lt;form _lpchecked="1" class="ng-valid-sp-disallow-chars ng-dirty ng-valid-parse ng-valid ng-valid-required" name="$parent.accounts" ng-submit="submit(form)" novalidate=""&gt;
     &lt;!-- ngIf: status &amp;&amp; status !== 200 --&gt;
     &lt;div class="row" ng-class="{'has-error': (accounts.username.$dirty &amp;amp;&amp;amp; accounts.username.$invalid)}"&gt;
      &lt;div class="col-xs-12"&gt;
       &lt;label class="control-label sr-only ng-binding" for="login-username"&gt;
        Username or email address
       &lt;/label&gt;
       &lt;input autocapitalize="off" autocomplete="off" autocorrect="off" autofocus="autofocus" class="form-control input-with-feedback ng-pristine ng-untouched ng-valid ng-valid-sp-disallow-chars ng-not-empty ng-valid-required" id="login-username" name="username" ng-model="form.username" ng-trim="false" placeholder="Username or email address" required="" sp-disallow-chars=":%&amp;amp;'`´&amp;quot;" sp-disallow-chars-model="usernameDisallowedChars" style='background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAAXNSR0IArs4c6QAAAUBJREFUOBGVVE2ORUAQLvIS4gwzEysHkHgnkMiEc4zEJXCMNwtWTmDh3UGcYoaFhZUFCzFVnu4wIaiE+vvq6+6qTgthGH6O4/jA7x1OiCAIPwj7CoLgSXDxSjEVzAt9k01CBKdWfsFf/2WNuEwc2YqigKZpK9glAlVVwTTNbQJZlnlCkiTAZnF/mePB2biRdhwHdF2HJEmgaRrwPA+qqoI4jle5/8XkXzrCFoHg+/5ICdpm13UTho7Q9/0WnsfwiL/ouHwHrJgQR8WEwVG+oXpMPaDAkdzvd7AsC8qyhCiKJjiRnCKwbRsMw9hcQ5zv9maSBeu6hjRNYRgGFuKaCNwjkjzPoSiK1d1gDDecQobOBwswzabD/D3Np7AHOIrvNpHmPI+Kc2RZBm3bcp8wuwSIot7QQ0PznoR6wYSK0Xb/AGVLcWwc7Ng3AAAAAElFTkSuQmCC"); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;' type="text"/&gt;
       &lt;!-- ngIf: accounts.username.$dirty &amp;&amp; accounts.username.$invalid --&gt;
      &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class="row" ng-class="{'has-error': (accounts.password.$dirty &amp;amp;&amp;amp; accounts.password.$invalid)}"&gt;
      &lt;div class="col-xs-12"&gt;
       &lt;label class="control-label sr-only ng-binding" for="login-password"&gt;
        Password
       &lt;/label&gt;
       &lt;input autocomplete="off" class="form-control input-with-feedback ng-not-empty ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" id="login-password" name="password" ng-model="form.password" ng-trim="false" placeholder="Password" required="" style='background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAAXNSR0IArs4c6QAAAUBJREFUOBGVVE2ORUAQLvIS4gwzEysHkHgnkMiEc4zEJXCMNwtWTmDh3UGcYoaFhZUFCzFVnu4wIaiE+vvq6+6qTgthGH6O4/jA7x1OiCAIPwj7CoLgSXDxSjEVzAt9k01CBKdWfsFf/2WNuEwc2YqigKZpK9glAlVVwTTNbQJZlnlCkiTAZnF/mePB2biRdhwHdF2HJEmgaRrwPA+qqoI4jle5/8XkXzrCFoHg+/5ICdpm13UTho7Q9/0WnsfwiL/ouHwHrJgQR8WEwVG+oXpMPaDAkdzvd7AsC8qyhCiKJjiRnCKwbRsMw9hcQ5zv9maSBeu6hjRNYRgGFuKaCNwjkjzPoSiK1d1gDDecQobOBwswzabD/D3Np7AHOIrvNpHmPI+Kc2RZBm3bcp8wuwSIot7QQ0PznoR6wYSK0Xb/AGVLcWwc7Ng3AAAAAElFTkSuQmCC"); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;' type="password"/&gt;
       &lt;!-- ngIf: accounts.password.$dirty &amp;&amp; accounts.password.$invalid --&gt;
      &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class="row row-submit"&gt;
      &lt;div class="col-xs-12 col-sm-6"&gt;
       &lt;div class="checkbox"&gt;
        &lt;label class="ng-binding"&gt;
         &lt;input class="ng-pristine ng-untouched ng-valid ng-not-empty" id="login-remember" name="remember" ng-model="form.remember" type="checkbox"/&gt;
         Remember me
         &lt;span class="control-indicator"&gt;
         &lt;/span&gt;
        &lt;/label&gt;
       &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-xs-12 col-sm-6"&gt;
       &lt;button class="btn btn-sm btn-block btn-green ng-binding"&gt;
        Log In
       &lt;/button&gt;
      &lt;/div&gt;
     &lt;/div&gt;
    &lt;/form&gt;
  </code></pre>