Scrape error "element script embeds close tag"
<p>I am scraping Yelp reviews using Python. I always got the Exception <code>element script embeds close tag</code> at</p>

<pre><code>tree = html.fromstring(br.open(url).get_data())
</code></pre>

<p>and a url is like this:</p>

<pre><code>url = "http://www.yelp.ca/biz/le-bernardin-new-york?start=1249"
</code></pre>

<p>which refers to review #1249 for restaurant le bernardin. I always have this problem after scraping around 2,000 reviews, no matter which restaurant I am scraping from. I added sleeps between each review but it did not help. If I restart the program from the same review, there will be no error. 
What should I do to avoid this?</p>