def _get_xvfb():
    if not sys.platform.startswith('linux'):
        return None

    try:
        from xvfbwrapper import Xvfb
        width, height = map(int, defaults.VIEWPORT_SIZE.split("x"))
        return Xvfb(width, height)
    except __HOLE__:
        return None
dataset/ETHPy150Open scrapinghub/splash/splash/xvfb.py/_get_xvfb