Hello,
I am using selenium to scrape data from a webpage that uses AJAX. I have no problem running the code on my computer and have tried to fix it for pythonanywhere.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
When I run this code with the "except: print did not load" removed, I get the following error (the line numbers may be off):
Traceback (most recent call last):File "/home/colmena14/scrapeDyn2018.py", line 33, in <module>
EC.visibility_of_element_located((By.XPATH,'//*[@id="groupTableWrapper"]'))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
at FirefoxDriver.findElementInternal_ (file:///tmp/tmpv8Ek7_/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
at FirefoxDriver.findElement (file:///tmp/tmpv8Ek7_/extensions/fxdriver@googlecode.com/components/driver-component.js:10779)
at DelayedCommand.executeInternal_/h (file:///tmp/tmpv8Ek7_/extensions/fxdriver@googlecode.com/components/command-processor.js:12661)
at DelayedCommand.executeInternal_ (file:///tmp/tmpv8Ek7_/extensions/fxdriver@googlecode.com/components/command-processor.js:12666)
at DelayedCommand.execute/< (file:///tmp/tmpv8Ek7_/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)
I've tried increasing the wait time to 60 seconds, but it still did not load. I was unable to find any similar errors in the forums. Could someone tell me what is going wrong? Is it I simply need to wait longer?
Thanks!