Forum >> Principianti >> login sito web

Pagina: 1

ho un problema
devo estrapolare delle informazioni (compiti) da un sito (Registro elettronico), ho provato tanti modi su internet ma nessuno è andato a buon fine





from selenium import webdriver

import time




NU = NomeUtente

PW = 'Password




def login():

browser=webdriver.Firefox()

browser.get('https://family.sissiweb.it/Secret/REStart.aspx?Customer_ID=80004710556')

time.sleep(40)

#credenziali

user=browser.find_element_by_css_selector('#txtUser')

user.send_keys(NU)

password=broser.find_element_by_css_selector('#txtPassword')

password.send_keys(PW)

login=browser.find_element_by_css_selector('#btnLogin')

login.click()




login()











errori








Traceback (most recent call last):

File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start

stdin=PIPE)

File "C:\Program Files (x86)\Python36-32\lib\subprocess.py", line 709, in __init__

restore_signals, start_new_session)

File "C:\Program Files (x86)\Python36-32\lib\subprocess.py", line 997, in _execute_child

startupinfo)

FileNotFoundError: [WinError 2] Impossibile trovare il file specificato




During handling of the above exception, another exception occurred:




Traceback (most recent call last):

File "C:/Users/loren/Desktop/bot/prove bot/login.py", line 19, in <module>

login()

File "C:/Users/loren/Desktop/bot/prove bot/login.py", line 8, in login

browser=webdriver.Firefox()

File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 152, in __init__

self.service.start()

File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start

os.path.basename(self.path), self.start_error_message)

selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.














che mi consigliate di fare?





Pagina: 1



Esegui il login per scrivere una risposta.