title: Fetch data of variables inside script tag in Python or Content added from js
body: <p>I want to fetch data from another url for which I am using <strong>urllib and Beautiful Soup</strong> , My data is inside table tag (which I have figure out using Firefox console). But when I tried to fetch table using his id the result is None , Then I guess this table must be dynamically added via some js code.</p>
  
  <p>I have tried all both parsers  <strong>'lxml', 'html5lib'</strong> but still I can't get that table data.</p>
  
  <p>I have also tried one more thing :</p>
  
  <pre><code>web = urllib.urlopen("my url")
  html = web.read()
  soup = BeautifulSoup(html, 'lxml')
  js  = soup.find("script")
  ss = js.prettify()
  print ss
  </code></pre>
  
  <p><strong>Result :</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   myPage = 'ETFs';
          sectionId = 'liQuotes'; //section tab
          breadCrumbId = 'qQuotes'; //page
          is_dartSite = "quotes";
          is_dartZone = "news";
          propVar = "ETFs";
  &lt;/script&gt;
  </code></pre>
  
  <p>But now I don't know how I can get data of these js variables.</p>
  
  <p>Now I have two options either get that table content ot get that the js variables, any one of them can fulfil my task but unfortunately I don't know how to get these , So please tell how I can get resolve any one of the problem.</p>
  
  <p>Thanks</p>