Giter Club home page Giter Club logo

Comments (6)

ponty avatar ponty commented on August 17, 2024

You find the answer in the README: "pyvirtualdisplay is a python wrapper for Xvfb, Xephyr and Xvnc"

I'dont know Selenium but you can ask your questions about it in the Selenium project forum.

from pyvirtualdisplay.

DobroAlex avatar DobroAlex commented on August 17, 2024

@shawnngtq , it' really simple. I have a project where I need to visit some urls, take screenshots and recognize text using Tesseract. The first option is to take a screenshot of an arbitrary size is to run chrome headless. On the other hand, any decent anti bot system will block a headless browser on sight. The other solution is to run a headfull browser. The problem here is that it requires some window manager and you can't simply install Gnome and expect Chrome to launch if you're using SSH as SSH "doesn't see" (a poor choice of words) any displays. So I'm using this lib to create a big sized xvfb and an arbitrary sized Chrome.

@ponty , I'm appreciating your job a lot. This package really saves a lot of time for someone who works with browsers and anti bot systems

from pyvirtualdisplay.

shawnngtq avatar shawnngtq commented on August 17, 2024

@DobroAlex
You can run headless selenium, but some website would block these. With pyvirtualdisplay, if visible=False, even though it looks headless, but the selenium that runs within it is not headless, therefore wouldn't be block. Is my understanding correct? 😄

from pyvirtualdisplay.

mals14 avatar mals14 commented on August 17, 2024

Is my understanding correct?

That would indeed be useful to know. Although, I think there are websites that can tell that it is controlled selenium visiting even when selenium is not running headless.

from pyvirtualdisplay.

FernandoRD avatar FernandoRD commented on August 17, 2024

Hi, I have a question, don´t know if here is the right to place to ask...
I want to know if PyVirtualDisplay can work together with wfreerdp (https://github.com/FreeRDP/FreeRDP/wiki/PreBuilds)
My need is to build a sensor in Nagios that tries to connect to a windows server to verify if the RDP service is OK.
There are sensors to do it, but they only test if the server accepts the connection. In my case the problem is that the server accepts it but the screen doesn´t load properly... It will have to run headless.... thankyou.

from pyvirtualdisplay.

ponty avatar ponty commented on August 17, 2024

Xvfb is for X display server, not for Windows. PyVirtualDisplay only starts Xvfb in headless mode.

https://en.wikipedia.org/wiki/Xvfb

from pyvirtualdisplay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.