title: Example of 'Programming Collective Intelligence' doesn't work
body: <p>I downloaded source code from <a href="http://kiwitobes.com/PCI_Code.zip" rel="nofollow">here</a>. I tried to run the example from chapter 4 of the book 'Programming Collective Intelligence' by Toby Segaran. My python version is 2.7.2. I type in interpreter this code:</p>
  
  <pre><code>import searchengine
  pages=['http://en.wikipedia.org/wiki/Programming_language']
  crawler = searchengine.crawler('searchindex.db')
  crawler.crawl(pages)
  </code></pre>
  
  <p>And get message:</p>
  
  <pre><code>Could not open http://en.wikipedia.org/wiki/Programming_language
  </code></pre>
  
  <p>Or sometimes get message: </p>
  
  <pre><code>Indexing http://en.wikipedia.org/wiki/Programming_language
  Could not parse page http://en.wikipedia.org/wiki/Programming_language
  </code></pre>
  
  <p>In summary crawler doesn't index the page. What am I doing wrong?</p>