[問題] 新手請教 moneycome.in 資料爬蟲已刪文
網站: 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
Python 近期熱門文章
PTT數位生活區 即時熱門文章