Dcard圖片爬蟲-使用Python

Yanwei Liu
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 當中
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade