title: Using python requests module post/get result from HTML form
body: <p>I have application which pulls lottery numbers from official website of lottery.</p>
  
  <p>Website allows search previous lottery games by its date.</p>
  
  <p>I have tried it by using <code>requests</code> module but after request was sent I still receiving website output before submit.</p>
  
  <p>Could take a look and guide me what I am doing wrong?</p>
  
  <pre><code>import requests
  import datetime
  
  web_page = 'https://www.lotto.pl/lotto/wyniki-i-wygrane/wyszukaj'
  
  def import_lotto():
  
      date = datetime.datetime(2019, 3, 2).strftime('%Y-%m-%d')
  
      payload = {
          'data_losowania[date]': date,
          'id': 'wyszukaj-wyniki-submit'
      }
  
      response = requests.post(web_page, data=payload)
  
      with open("requests_results.html", 'w') as f:
          f.write(response.text)
  
  
  if __name__ == '__main__':
      import_lotto()
  </code></pre>