Download data using selenium
<p>I am a research analyst trying to collate data and perform analysis.I need data from this <a href="http://www.moneycontrol.com/stocks/marketinfo/netprofit/bse/index.html" rel="nofollow">page </a>. I need data of Abrasives to vanspati Oils (you'll find it on left side). I always encounter problems like this, I figured out that selenium will be able to handle such stuff. But I am stuck on how to download this data into Excel. I need one excel sheet for each category.
My exact technical question is how do I address the problem of downloading the table data.I did a little bit of background research and understood that the data can be extracted if the table has class_name.<a href="http://selenium-python.readthedocs.org/locating-elements.html" rel="nofollow">from here</a>. I see that the table has <code>class="tbldata14 bdrtpg"</code> So I used it in my code.
I got this error </p>

<blockquote>
  <p>InvalidSelectorException: Message: The given selector tbldata14 bdrtpg
  is either invalid or does not result in a WebElement.</p>
</blockquote>

<p>How can I download this table data? Point me to any references that I can read and solve this problem.
My code:</p>

<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()

driver.get("http://www.moneycontrol.com/stocks/marketinfo/netprofit/bse/index.html")
elem=driver.find_element_by_class_name("tbldata14 bdrtpg")
</code></pre>

<p>Thanks in advance.Also please suggest if there is another simple way [I tried copy paste it is too tedious!]</p>