title: beautiful soup works sometimes
body: <p>Here I have a very simple scraper for the name of an item on llbean</p>
  
  <pre><code>import urllib2
  from bs4 import BeautifulSoup
  
  def mainTest():
      url = "http://www.llbean.com/llb/shop/43281?feat=506697-GN2&amp;page=women-s-l-l-bean-boots-10-shearling-lined&amp;attrValue_0=Brown/Brown&amp;productId=732934"
      page=urllib2.urlopen(url)
      soup = BeautifulSoup(page.read(), "html5lib")
      name = soup.find('h1', attrs={'itemprop':'name'}).text
      print name
      print str(soup)[:100]
  
  mainTest()
  </code></pre>
  
  <p>This scraper works usually. It usually prints what I want:</p>
  
  <pre><code>                                Women's Bean Boots® by L.L.Bean, 10" Shearling-Lined
  
  &lt;!DOCTYPE html&gt;
  &lt;html class="no-js" lang="en"&gt;&lt;head&gt;
          &lt;meta charset="utf-8"/&gt;
          &lt;meta c
  </code></pre>
  
  <p>But sometimes it prints:</p>
  
  <pre><code>None
  &lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>This is a pretty hard error to repeat and I am sorry for that. I believe that the issue may lie in llbean sometimes loading faster than my scraper and sometime my scraper scraping first. </p>
  
  <p>Does anyone know of a way to slow my scraper down maybe?</p>
  
  <p>It may also be a different problem altogether.</p>