Selenium Error - platform_sensor_reader_win.cc(242)]

Selenium Error - platform_sensor_reader_win.cc(242)]



enter image description hereI have been having issues with my selenium and chromedriver that I can't seem to figure out. I have one code that runs just fine and does everything it is supposed to. However, I have another that give me the error code in the picture. If anyone could help, I would certainly appreciate it as I had no luck finding anything online. I especially don't understand why one program runs with no issues and the other doesn't.



Code that runs just fine:


from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
import time

beginningTime = time.time()
browser = webdriver.Chrome()
time.sleep(3)

browser.get('http://droughtmonitor.unl.edu/Data/DataDownload/ComprehensiveStatistics.aspx')
browser.maximize_window()
dropdown = browser.find_element_by_xpath("""//*[@id="dnn_ctr1009_USDMservice_CompStats_2017_aoiType_chosen"]""")



Code that doesn't work:


import numpy as np
from bs4 import BeautifulSoup
import requests
import pandas as pd
import time
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys


beginningTime = time.time()
browser = webdriver.Chrome()
symbols = ['WYNN', 'FL', 'TTWO', 'NKE']
myColumnHeaders = ['Date', 'Open', 'High', 'Low', 'Close', 'Volume']

dfs =

for c in range(len(symbols)):
browser.get('https://www.nasdaq.com/symbol/'+symbols[c]+'/historical')
print('read url')
time.sleep(3)
browser.get(url)
time.sleep(3)
print('here')



It prints 'read url' and opens the webpage but never gets to the print 'here' step. It then throws the note in the command prompt that is attached as a picture. Any help would be greatly appreciated.enter image description here






Is it possible that the website has restricted the use of selenium somehow as I tried a couple other websites and they load. If so, does anyone know of a workaround. I'm trying to get 5 years of stock data but their website defaults to 3 months.

– Shawn Schreier
Sep 15 '18 at 4:00




0



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)