iT邦幫忙

1

Scrapy 寫法求救

不明 2019-02-15 09:55:231467 瀏覽

這兩張是我的spider
https://ithelp.ithome.com.tw/upload/images/20190215/201138601K7DkKJI8d.jpghttps://ithelp.ithome.com.tw/upload/images/20190215/20113860xRxriiRGTn.jpg!

這是我的item.py
https://ithelp.ithome.com.tw/upload/images/20190215/20113860fE1SjawfA1.jpg

這是我的settings
https://ithelp.ithome.com.tw/upload/images/20190215/20113860QZXGgIzrsu.jpg

Q1:
不知道在spider哪裡出了問題,總是抓不到任何ptt上的東西...
請求協助了...

Q2:
不太了解setting的那段code是什麼意思?
請大神解惑了~感謝!

如果註解地方有寫錯,也請專家指教了!!!
謝謝!!!

froce iT邦大師 1 級 ‧ 2019-02-15 11:31:49 檢舉
scrpy我不熟,不過第2點:
https://scrapy-chs.readthedocs.io/zh_CN/0.24/topics/feed-exports.html
建議先照文件做一遍,瞭解這個框架的用法。

爬蟲我是都用requests和selenium自幹比較多。
不明 檢舉
謝謝回答!!!
想請問爬蟲大家是比較推薦Scrapy , Selenium 還是 beautiful soup?
謝謝!!!
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答