Python Crawler - Check to see if a javascript line exists and if so, parse it
<p>I am scraping a page in python 2.7 using lxml.html and I need to do the following...</p>

<p>1) find out if this line is on the page.  I am actually looking to see if parent_asin exists.  Its not on every page.</p>

<pre><code>DetailPage.StateController.setState('parent_asin', 'B0000DB87U');
</code></pre>

<p>2) If it does exist, the how to I get B0000DB87U?  That will change for every page when parent_asin is in the page.  This is all in javascript and I am using lxml to fetch and parse html.  Need another approach for JS.</p>
