youg-xx
1/21/2018 - 2:45 PM

python pickle

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