设置一个import time略…# 做个睡眠时间t = time.sleep(要睡眠的时间,如05,1,2,)# 在想写入文件做个判断with open("文件路径","wb")as f: f.write(网址,conten) if == t: break
python + selenium + phantomjs