代码如下: import threadingimport os class Find(threading.Thread): #搜索数据的线程类 def __init__(self,datalist,startIndex,endIndex,searchstr,savefile): #datalist要搜索
Python Just get Response Headers, not get content. 1. Use HEAD method import requests res = requests.head(http://www.baidu.com/) req.head(https://www.baidu.com/).headers{Content-Enc