Update InvestCal.py

This commit is contained in:
Redsandy 2022-04-06 15:31:37 +03:00 committed by GitHub
parent 93c15bc4e0
commit d3ea17481e

View File

@ -43,7 +43,7 @@ def investingPars(path_file=None,dateDict=None):
time.sleep(2)
driver.execute_script("window.scrollTo(0,document.body.scrollHeight)")
time.sleep(2)
#f_write(driver)
f_write(driver)
page_source=driver.page_source
except Exception as ex:
@ -100,7 +100,7 @@ def getDF(doc,path_file):
colDate = tdList[i][0].text[:-3]
else:
newRow={
col_names[0]:tdList[i][0].text,
col_names[0]:getTime(tdList[i][0]),
col_names[1]:tdList[i][1].text.strip(),
col_names[2]:getValat(tdList[i][2]),
col_names[3]:tdList[i][3].text.strip(),