title: Automatically pressing a "submit" button using python
body: <p>The bus company I use runs an awful website (<a href="http://mslworld.egged.co.il/eggedtimetable/WebForms/wfrmMain.aspx?width=1024&amp;company=1&amp;language=he&amp;state=" rel="nofollow noreferrer">Hebrew</a>,<a href="http://mslworld.egged.co.il/eggedtimetable/WebForms/wfrmMain.aspx?width=1024&amp;company=1&amp;language=en&amp;state=" rel="nofollow noreferrer">English</a>) which making a simple "From A to B timetable today" query a nightmare. I suspect they are trying to encourage the usage of the costly SMS query system.</p>
  
  <p>I'm trying to harvest the entire timetable from the site, by submitting the query for every possible point to every possible point, which would sum to about 10k queries. The query result appears in a popup window. I'm quite new to web programming, but familiar with the basic aspects of python.</p>
  
  <ol>
  <li>What's the most elegant way to parse the page, select a value fro a drop-down menu, and press "submit" using a script?</li>
  <li>How do I give the program the contents of the new pop-up as input?</li>
  </ol>
  
  <p>Thanks!</p>