from selenium import webdriver
from bs4 import BeautifulSoup
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get("""https://www.itemscout.io/keyword""")
WebDriverWait(driver, 60).until(EC.presence_of_element_located((By.CSS_SELECTOR, "input.input-keyword")))
c = WebDriverWait(driver, 60).until(EC.visibility_of_element_located((By.XPATH, '//*[@id="app"]/div/main/div/div/div/div[1]/div/div[1]/div[2]/label/div')))
c.click()
search = driver.find_element_by_class_name("""input-keyword""")
search.send_keys('레고')
search.send_keys(Keys.RETURN)
WebDriverWait(driver, 60).until(EC.presence_of_element_located((By.CSS_SELECTOR, "table.body-table")))
html = driver.page_source
html = BeautifulSoup(html, 'html.parser')
tables = html.select('table')
table = pd.read_html(str(tables[1]))
print(table)
the result is [1 rows x 11 columns] and I want to print the row values of 4,6,7 columns. How can I do this ?