如何經過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
相關文章
相關標籤/搜索