I upgraded my account to Hacker account (Paid account).
And I followed the below step but still no result. How can I do?
https://help.pythonanywhere.com/pages/selenium/
from pyvirtualdisplay import Display
from selenium import webdriver
with Display():
# we can now start Firefox and it will run inside the virtual display
browser = webdriver.Firefox()
# put the rest of our selenium code in a try/finally
# to make sure we always clean up at the end
try:
browser.get('http://www.google.com')
print(browser.title) #this should print "Google"
finally:
browser.quit()
I'm using python 3.6 and below application.
beautifulsoup4 (4.6.0)
bs4 (0.0.1)
certifi (2017.11.5)
chardet (3.0.4)
Django (2.0)
EasyProcess (0.2.3)
idna (2.6)
lxml (4.1.1)
numpy (1.13.3)
pandas (0.21.0)
pip (9.0.1)
python-dateutil (2.6.1)
pytz (2017.3)
PyVirtualDisplay (0.2.1)
requests (2.18.4)
selenium (2.53.6)
setuptools (38.2.4)
six (1.11.0)
urllib3 (1.22)
wheel (0.30.0)
I think maybe the virtual display cannot activate. How can I activate the virtual display for selenium?
How can I check the virtual display driver?
Thank you.