[問題] dcard 爬蟲 403

看板Python作者時間3年前 (2021/02/05 14:12), 3年前編輯推噓1(215)
留言8則, 3人參與, 3年前最新討論串1/1
https://i.imgur.com/bFovpAM.png
如圖 之前爬蟲都是爬取PTT的 最近改學習爬取dcard 我按照網路上的教學範例 結果都是回報403 之前爬PTT時沒有遇到這種情況 請問這要怎麼處理? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.115.59.236 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1612505571.A.CB3.html

02/05 14:34, 3年前 , 1F
帶好該帶的header
02/05 14:34, 1F
https://i.imgur.com/QLm4NWY.png
還是一樣QAQ ※ 編輯: Kuba4ma (140.115.59.236 臺灣), 02/05/2021 15:25:14

02/05 17:38, 3年前 , 2F
用 cloudscraper
02/05 17:38, 2F

02/05 18:45, 3年前 , 3F
我打 api 沒問題欸,你試試看這支爬單一看板內的文章
02/05 18:45, 3F

02/05 18:45, 3年前 , 4F
的 api 試試看
02/05 18:45, 4F

02/05 18:45, 3年前 , 5F

02/05 18:45, 3年前 , 6F
稱}/posts
02/05 18:45, 6F

02/05 18:46, 3年前 , 7F
有要其他需求這邊找得到
02/05 18:46, 7F

02/05 18:46, 3年前 , 8F
文章代碼(AID): #1W7E7Zop (Python)