title: Web scraping data from an interactive chart
body: <p>Would it be possible to get the data behind the interactive chart in <a href="http://index.baidu.com/?tpl=trend&amp;word=%B2%CD%B9%DD" rel="nofollow">this webpage</a> (sorry, website requires login)?</p>
  
  <p>When I hover over the chart with a mouse, the data shows up, but how do I get that data?</p>
  
  <p>Here's an extract of the HTML source code from that website:</p>
  
  <pre><code>&lt;svg height="460" version="1.1" width="1037" xmlns="http://www.w3.org/2000/svg" style="overflow: hidden; position: relative; left: -0.5px;"&gt;
  &lt;desc&gt;Created with Raphaël 2.1.0&lt;/desc&gt;
  &lt;defs&gt;
  
  &lt;path style="" fill="none" stroke="#f1f1f1" d="M20,130L1017,130M20,159.66666666666666L1017,159.66666666666666M20,189.33333333333331L1017,189.33333333333331M20,219L1017,219M20,248.66666666666666L1017,248.66666666666666M20,278.3333333333333L1017,278.3333333333333M20,308L1017,308"&gt;
  &lt;path style="" fill="none" stroke="#f1f1f1" d="M295.0344827586207,130L295.0344827586207,337.66666666666663M295.0344827586207,365L295.0344827586207,415M535.6896551724138,130L535.6896551724138,337.66666666666663M535.6896551724138,365L535.6896551724138,415M776.3448275862069,130L776.3448275862069,337.66666666666663M776.3448275862069,365L776.3448275862069,415M1017,130L1017,337.66666666666663M1017,365L1017,415"&gt;
  &lt;path style="" fill="none" stroke="#cccccc" d="M17,337.66666666666663L1018,337.66666666666663"&gt;
  &lt;path style="" fill="none" stroke="#cccccc" d="M17,365L1018,365"&gt;
  &lt;rect x="20" y="130" width="997" height="207.66666666666666" r="0" rx="0" ry="0" fill="#ff0000" stroke="none" style="opacity: 0;" opacity="0"&gt;
  &lt;path style="" fill="none" stroke="#6e87d7" d="M20,281.030303030303L54.37931034482759,316.6902356902357L88.75862068965517,318.78787878787875L123.13793103448276,318.78787878787875L157.51724137931035,318.78787878787875L191.89655172413794,312.4949494949495L226.27586206896552,285.2255892255892L260.65517241379314,312.4949494949495L295.0344827586207,314.59259259259255L329.41379310344826,316.6902356902357L363.7931034482759,297.8114478114478L398.1724137931035,318.78787878787875L432.55172413793105,335.56902356902356L466.9310344827586,293.61616161616155L501.3103448275862,276.8350168350168L535.6896551724138,272.6397306397306L570.0689655172414,274.7373737373737L604.448275862069,272.6397306397306L638.8275862068965,216.00336700336698L673.2068965517242,216.00336700336698L707.5862068965517,239.07744107744105L741.9655172413793,281.030303030303L776.344827586207,144.68350168350165L810.7241379310345,245.37037037037032L845.1034482758621,239.07744107744105L879.4827586206897,247.46801346801345L913.8620689655172,245.37037037037032L948.2413793103449,245.37037037037032L982.6206896551724,207.61279461279457L1017,163.56228956228955" stroke-width="2"&gt;
  &lt;path style="" fill="none" stroke="#f1f1f1" d="M20,390L1017,390M20,415L1017,415"&gt;
  &lt;path style="opacity: 
  </code></pre>
  
  <p>There are many many more of these <code>path</code> elements, which I didn't paste here.</p>