Python Headless Web Browser Scraping

sudo pip install selenium
sudo yum install gcc gcc-c++ make git openssl-devel freetype-devel fontconfig-devel 
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
tar -xjvf phantomjs-1.9.1-linux-x86_64.tar.bz2
sudo cp phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/
from selenium import webdriver

driver = webdriver.PhantomJS()
driver.set_window_size(1024, 768)
driver.get('http://www.amazon.com/')
driver.save_screenshot('screen.png')
print driver.page_source
driver.quit()