Dcard圖片爬蟲-使用Python
Sep 4, 2018 · 1 min read
本文只介紹此模組的使用,並非本人開發
原作者為https://github.com/leVirve請各位多多支持
原專案連結 : https://github.com/leVirve/dcard-spider
安裝
pip install dcard-spider直接使用 CMD
dcard download -f photography -n 100下載指令
dcard download -f [forums 看板名稱] -n [數量](額外參數:)
-likes [likes 過濾門檻]
-b [指定起始文章 ID]
-o [輸出至...資料夾]
-F [平面化子資料夾 (各文章圖片在同一資料夾)]
假設今天要下載 攝影版文章當中的圖片、數量100篇、Likes數超過20
dcard download -f photography -n 100 -likes 20預設輸出資料夾會在 C:\Users\username\Downloads 當中