def get_site_method(self):
try:
req_headers = dict(requests.options('http://'+self.url).headers)
if req_headers.has_key('Allow'):return {"Method":req_headers["Allow"]}
else:return {"Method":"NO Information"}
except:return {"Method":"NO Information"}
评论列表
文章目录