爬蟲中ajax獲取數據的方式(get)

在爬數據的時候,有的時候發現driver.get("body").get(0).getText()就不包含所需要的數據圖表,這種情況大多是需要查看元素--網絡,找到能返回json字符串或者html(查看xhr或者html)。然後模擬一個請求,以圖獲取它的響應。以https://premium.usnews.com/best-graduate-schools/top-business-schools
相關文章
相關標籤/搜索