[問題] 新手請教 moneycome.in 資料爬蟲已刪文

看板Python作者 (中國台北SEn)時間3年前 (2021/03/23 19:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
網站: https://www.moneycome.in/tool/compound_interest?stkCode=5904 小弟自學3個月python爬蟲(業外時間) 想要爬取上面提到的網站表格 https://imgur.com/gallery/6REgZBm 試過requests: https://github.com/terranandes/crawler/blob/master/project_tw/main_requests.py 結果print(resp.txt)得到以下dict {"resultCode":500,"errMsg":"undefined method `[]' for nil:NilClass"} 使用Selenium IDE (firefox) https://github.com/terranandes/crawler/blob/master/project_tw/selenium_firefox.py 也無法抓到真實網址with correct payload & header 這是為什麼? 反爬蟲? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.216.141.121 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1616500743.A.4ED.html
文章代碼(AID): #1WMTW7Jj (Python)
文章代碼(AID): #1WMTW7Jj (Python)