from selenium import webdriverurl = 'https://www.jijindou.com/'driver = webdriver.PhantomJS(executable_path="E:\\python\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe")driver.get(url)data = driver.title #百度一下,你就知道 driver.save_screenshot('{}.png'.format(data[:2]))print(data[:2])