Android 台灣中文網
標題:
使用 beautiful soup find_all() 報錯: lsit out of range
[打印本頁]
作者:
嵐風
時間:
2020-12-28 20:38
標題:
使用 beautiful soup find_all() 報錯: lsit out of range
下述是引註資料
https://ithelp.ithome.com.tw/questions/10201644
一、我想要爬下述網站的資料
https://tw.stock.yahoo.com/q/q?s=
= 後面接的是 tkinter entry get 輸入得到的代碼變數
二、用 while(true) 一直循環爬取網頁資料,每隔一段時間再爬,並將資料一列一列地寫入 excel
三、我在table01 = soup01.find_all(text="成交")[0].parent.parent.parent 報錯: list out of range
****各位大大好!不好意思打擾各位大大了!請問這個問題該如何解決呢?煩請告知 謝謝!
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1