Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Es necesario lanzarlo desde el directorio en el que está el programa #2

Open
Cristinasj opened this issue Feb 28, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Cristinasj
Copy link

Por ejemplo, si lo lanzo desde mi home, me da el siguiente error

COURSES folder not found, making one.
Traceback (most recent call last):
File "Uni/pradoscraper/webPrado.py", line 221, in
main()
File "Uni/pradoscraper/webPrado.py", line 197, in main
logInfo, courses = checkStatus()
File "Uni/pradoscraper/webPrado.py", line 48, in checkStatus
raise Exception("A courseList.txt file is needed.")

Y si se vuelve a lanzar como siempre, ya no funciona. Da el siguiente error:

Traceback (most recent call last):
File "webPrado.py", line 221, in
main()
File "webPrado.py", line 206, in main
courseRead(courses, driver)
File "webPrado.py", line 109, in courseRead
actualCourse = driver.find_element_by_xpath("//h4[contains(text(),'"+i+"')]")
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/cristina/.local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //h4[contains(text(),'FUNDAMENTOS DE BASES DE DATOS - 2021 (COMÚN)')]

@RhinoBlindado RhinoBlindado added the enhancement New feature or request label Feb 28, 2021
@RhinoBlindado RhinoBlindado self-assigned this Feb 28, 2021
@RhinoBlindado
Copy link
Owner

Acknowleged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants