推 TuCH: 要下console 必須要有js能執行的環境 06/20 12:24
→ piligo: 我有找到requests_html+render 但玩不出效果 頂多就撈到 06/20 12:51
→ piligo: js的原始碼 如果一定要靠selenium 要用什麼方法把值取出 06/20 12:53
推 TuCH: 比較暴力的方法就在console 裡面下http 方法 用一個server接 06/20 16:07
→ TakiDog: 下js才能撈到資料,這段資料是在js檔案中,還是透過http 06/20 19:40
→ TakiDog: 如果在js中 call Node去解(? 06/20 19:41
→ s860134: 用 selenium 搭配 headless 應該是你最好的選擇 06/20 21:57
→ s860134: DevTools 是瀏覽器的功能 ,他console 環境也是經過 瀏覽 06/20 21:59
→ s860134: 器的 js 引擎執行後的結果,除了真的用真正的 console 其 06/20 21:59
→ s860134: 他方式都有侷限 06/20 21:59
→ s860134: 使用 selenium 和瀏覽器溝通是有侷限的,你可以找一下直 06/20 22:20
→ s860134: 接跟瀏覽器 debug protocol 有關的資訊 06/20 22:20
→ vi000246: 當然可以啊 但你要把你的需求再寫詳細一點 06/23 19:59
→ vi000246: 是要取得什麼資料 為什麼不能parse html,一定要js? 06/23 20:00
→ vi000246: 是要取得網頁local的js變數嗎 還是取html裡的資料? 06/23 20:01