Update InvestCal.py
This commit is contained in:
parent
93c15bc4e0
commit
d3ea17481e
@ -43,7 +43,7 @@ def investingPars(path_file=None,dateDict=None):
|
|||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
driver.execute_script("window.scrollTo(0,document.body.scrollHeight)")
|
driver.execute_script("window.scrollTo(0,document.body.scrollHeight)")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
#f_write(driver)
|
f_write(driver)
|
||||||
page_source=driver.page_source
|
page_source=driver.page_source
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
@ -100,7 +100,7 @@ def getDF(doc,path_file):
|
|||||||
colDate = tdList[i][0].text[:-3]
|
colDate = tdList[i][0].text[:-3]
|
||||||
else:
|
else:
|
||||||
newRow={
|
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[1]:tdList[i][1].text.strip(),
|
||||||
col_names[2]:getValat(tdList[i][2]),
|
col_names[2]:getValat(tdList[i][2]),
|
||||||
col_names[3]:tdList[i][3].text.strip(),
|
col_names[3]:tdList[i][3].text.strip(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user