Python Forum
Python code for exporting table using Selenium
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python code for exporting table using Selenium
#1
I am looking to download the tables in this URL for different selections like Crude, Oil etc using Python but I am a beginner and I tried using Selenium to get the table but I don't know how to export this format to a file like excel or csv. I am not even sure if this is the correct approach.

http://www.jodidb.org/TableViewer/tableV...rtId=93904

Below is my code so far
from selenium import webdriver
import chromedriver_binary
import pandas as pd
driver = webdriver.Chrome()

driver.get('http://www.jodidb.org/TableViewer/tableView.aspx?ReportId=93904')

    elem = driver.find_element_by_class_name('ExplorerContentPane').click()
Any help is appreciated.
Reply


Messages In This Thread
Python code for exporting table using Selenium - by gj31980 - Jul-30-2020, 10:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Selenium update broke python code genericusername12414 1 265 Mar-16-2024, 07:33 PM
Last Post: snippsat
  Going through HTML table with selenium emont 3 837 Sep-30-2023, 02:13 AM
Last Post: emont
  Exporting Stock Fundamental Data to a CSV file with yahoo_fin DustinKlent 2 4,761 Aug-01-2022, 06:08 PM
Last Post: paulyan
  Multiplication Table code alexsendlegames100 3 1,400 Jun-06-2022, 09:45 AM
Last Post: Gribouillis
  Exporting dataframes to excel without loosing datetime format Rafa 0 1,252 Oct-27-2021, 10:42 AM
Last Post: Rafa
  Exporting a huge dataFrame stylingpat 5 15,742 Mar-23-2021, 12:13 AM
Last Post: stylingpat
  exporting all lines YazeedbnMohmmed 2 2,145 Feb-24-2021, 03:29 AM
Last Post: YazeedbnMohmmed
  Exporting data from python into excel Zankawah 5 3,432 Jun-02-2020, 03:17 AM
Last Post: buran
  Code import .CSV file to MySQL table rtakle 4 2,912 Apr-30-2020, 03:16 PM
Last Post: anbu23
  Exporting list with dictionary to Excel veromi22 0 3,066 Oct-15-2019, 12:54 AM
Last Post: veromi22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020