Dcard圖片爬蟲-使用Python

本文只介紹此模組的使用,並非本人開發
原作者為
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 當中

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store