2 回答

TA贡献1836条经验 获得超3个赞
如果您正在寻找代码。这可能有帮助:-
from selenium import webdriver
import time
webpage = 'https://web.sensibull.com/optionchain?expiry=2020-03-26&tradingsymbol=NIFTY'
driver = webdriver.Chrome(executable_path='Your/path/to/chromedriver.exe')
driver.get(webpage)
time.sleep(10)
nifty_fut = driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div[2]/div[3]/div/div/div[2]/div[1]/div[1]/div/button/span[1]/div[1]')
print(nifty_fut.text)
atm_iv = driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div[2]/div[3]/div/div/div[2]/div[1]/div[2]')
print(atm_iv.text)
driver.quit()

TA贡献1820条经验 获得超10个赞
可能是语法问题尝试soup.find_all("div", class_="style__AtmIVWrapper-idZNMX kUMMRI")
或只是soup.find("div", class_="style__AtmIVWrapper-idZNMX kUMMRI")
- 2 回答
- 0 关注
- 98 浏览
添加回答
举报