fix(route): dcard (#10739)

* fix: dcard

use puppeteer

* docs: add pptr attr

* fix: use cookies

* docs: add warning
This commit is contained in:
Tony
2022-09-09 00:55:42 +08:00
committed by GitHub
parent 655b899715
commit ba2df5d3d9
3 changed files with 83 additions and 59 deletions
+8 -2
View File
@@ -130,13 +130,19 @@ pageClass: routes
## Dcard
::: warning 注意
僅能透過台灣 IP 抓取。
:::
### 首頁帖子
<Route author="DIYgod" example="/dcard/posts/popular" path="/dcard/posts/:type?" :paramsDesc="['排序,popular 熱門;latest 最新,默認為 latest']" radar="1" rssbud="1" anticrawler="1"/>
<Route author="DIYgod" example="/dcard/posts/popular" path="/dcard/posts/:type?" :paramsDesc="['排序,popular 熱門;latest 最新,默認為 latest']" radar="1" rssbud="1" anticrawler="1" puppeteer="1"/>
### 板塊帖子
<Route author="HenryQW" example="/dcard/funny/popular" path="/dcard/:section/:type?" :paramsDesc="['板塊名稱,URL 中獲得', '排序,popular 熱門;latest 最新,默認為 latest']" radar="1" rssbud="1" anticrawler="1"/>
<Route author="HenryQW" example="/dcard/funny/popular" path="/dcard/:section/:type?" :paramsDesc="['板塊名稱,URL 中獲得', '排序,popular 熱門;latest 最新,默認為 latest']" radar="1" rssbud="1" anticrawler="1" puppeteer="1"/>
## Discuz