0

I am using Selenium for webscraping

I want to hide the browser that open while Selinium makes request. I have just installed PyVirtualDisplay-0.1.5. I am running Windows 8.1

from pyvirtualdisplay import Display
display = Display(visible=0, size=(800, 600))
display.start()

I am getting this error.

ImportError: No module named 'display'
JMax
  • 26,109
  • 12
  • 69
  • 88
  • possible duplicate of [Python XVFB error in windows](http://stackoverflow.com/questions/21063833/python-xvfb-error-in-windows) – Surya Nov 24 '14 at 16:39

1 Answers1

0

pyvirtualdisplay requires Xvfb to work. It is not available for Windows, because there is no X server.

Corey Goldberg
  • 59,062
  • 28
  • 129
  • 143