title: Python Submit post and get results
body: <p>I am trying to scrape store locations from aeropostal webpage but the way i am doing it it seems that it doesnt work, can someone guide me? or tell me what i am doing wrong? here is my code:</p>
  
  <pre><code>import requests
  from lxml.html import fromstring
  from bs4 import BeautifulSoup
  
  with requests.Session() as c:
      url = 'http://www.aeropostale.com/storeLocator/index.jsp'
      response = requests.get(url)
      print(response)
      # {'city': '', 'searchType': 'POSTAL_CODE', 'typeId': '0', 'findByZip': None, 'action': 'SEARCH_FOR_STORES', 'state': '', 'radius': '5', 'postalCode': None}
      html = fromstring(response.content)
      payload = dict(html.forms[2].fields)
      print(payload)
      # {'city': '', 'searchType': 'STATE', 'typeId': '0', 'findByZip': None, 'action': 'SEARCH_FOR_STORES', 'state': 'LA', 'radius': '50', 'postalCode': None}
      payload.update(({'searchType': 'STATE', 'state': 'LA', 'radius': '50'}))
      print(payload)
      locations = c.post(url, data=payload)
      print(locations)
      r = c.get('http://www.aeropostale.com/storeLocator/results.jsp')
      print(BeautifulSoup(r.content).text)
  </code></pre>
  
  <p>It doesnt get the posted result i dont know why and when i try to find the form of <a href="http://www.aeropostale.com/storeLocator/results.jsp" rel="nofollow">http://www.aeropostale.com/storeLocator/results.jsp</a>
   it doesnt seems to have the posted form it gives me this form</p>
  
  <pre><code># {'emailPrefAERO': 'Y', 'surveyOnly': 'Y', 'emailAddress': None, 'isSMS': 'N'}
  </code></pre>
  
  <p>can someone help me out?</p>