xvfb run error in ubuntu 11.04

前端 未结 2 541
Happy的楠姐
Happy的楠姐 2021-01-11 12:11

My task is crawling the google search results using headless webkit(PyQt4.QtWebkit) in python. The module was crawling the results fine using PyQt4.I should have to execute

相关标签:
2条回答
  • 2021-01-11 12:31

    You need to add --auto-servernum parameter for xvfb-run. Otherwise, it tries to spawn Xvfb on the same display (by default :99), which will fail if you already have one running.

    0 讨论(0)
  • 2021-01-11 12:33

    Run like this,

    xvfb-run --auto-servernum --server-num=1 python webpage_scrapper.py http://google.com
    
    0 讨论(0)
提交回复
热议问题