title: How to write a simple spider in Python?
body: <p>I've been trying to write this spider for weeks but without success. What is the best way for me to code this in Python:</p>
  
  <p>1) Initial url: <code>http://www.whitecase.com/Attorneys/List.aspx?LastName=A</code></p>
  
  <p>2) from initial url pick up these urls with this regex:</p>
  
  <p><code>hxs.select('//td[@class="altRow"][1]/a/@href').re('/.a\w+')</code></p>
  
  <pre><code>[u'/cabel', u'/jacevedo', u'/jacuna', u'/aadler', u'/zahmedani', u'/tairisto', u
  /zalbert', u'/salberts', u'/aaleksandrova', u'/malhadeff', u'/nalivojvodic', u'
  ....
  </code></pre>
  
  <p>3) Go to each of these urls and scrape the school info with this regex</p>
  
  <p><code>hxs.select('//td[@class="mainColumnTDa"]').re('(?&lt;=(JD,\s))(.*?)(\d+)'</code></p>
  
  <p><code>[u'JD, ', u'University of Florida Levin College of Law, &lt;em&gt;magna cum laude&lt;/em&gt;
     , Order of the Coif, Symposium Editor, Florida Law Review, Awards for highest 
     grades in Comparative Constitutional History, Legal Drafting, Real Property and 
     Sales, ', u'2007']</code></p>
  
  <p>4) Write the scraped school info into schools.csv file</p>
  
  <p>Can you help me write this spider in Python? I've been trying to write it in Scrapy but without success. See my previous <a href="https://stackoverflow.com/questions/1805050/scrapy-spider-index-error">question</a>.</p>
  
  <p>Thank you.</p>