Although this is not a solution to your problems with Phantomjs, I think that Selenium with Python bindings can be used very effectively as a mute scraper in a Linux environment.
You can use PyVirtualDisplay, the Python wrapper for Xvfb, and Xephyr to fake the display. PvVirtualDisplay requires Xvfb as a dependency. On Ubuntu, first install Xvfb:
sudo apt-get install xvfb
then install PyVirtualDisplay from Pypi:
pip install pyvirtualdisplay
Python Selenium script example in silent mode with PyVirtualDisplay:
#!/usr/bin/env python from pyvirtualdisplay import Display from selenium import webdriver display = Display(visible=0, size=(800, 600)) display.start()
source share