import pickle f = open('item.html','rb') buff = pickle.load(f) f.close
import pickle buff = driver.page_source dom = lxml.html.fromstring(buff) f = open('item.html','wb') pickle.dump(buff,f) f.close