如何经过Python+Selenium+PhantomJS/Chrome获取HTTP状态和Response Headers

Selenium没有提供获取HTTP状态码的API,而且彷佛之后也不许备提供该功能,还好有变通的方法。这里提供Python+Selenium+PhantomJS的实现供参考:html # Python 2.7 from selenium import webdriver import json from collections import OrderedDict def getRespon
相关文章
相关标签/搜索