GithubHelp home page GithubHelp logo

lockys / dcard.js Goto Github PK

View Code? Open in Web Editor NEW
35.0 7.0 7.0 1.69 MB

:couple: Unofficial Dcard API wrapper for Node.js developers.

Home Page: https://npm.im/dcard

JavaScript 100.00%
dcard wrapper api node api-wrapper

dcard.js's Issues

Dcard has changed API route to retrieve post data.

The APIs is still available to be access by everyone.
But the routes has been changed.
https://www.dcard.tw/api/post/all/101877097 -> https://www.dcard.tw/_api/posts/101877097
Also, the comments can be retrieved by the following resource.
https://www.dcard.tw/_api/posts/101877097/comments?popular=true

建議文件之類的都使用中文就好

dcard這種東西是台灣 (華人) 在使用的,
我相信應該是幾乎沒有中文圈以外的 coder 會使用,
所以我覺得沒有必要使用英文來增加各位朋友的困擾其實。

文件可以加 limit 這個參數

因為許多 getAll 的 end point 預設都只會列前 30 筆,可能不夠好用。

根據我通靈的測法,發現可以在 api 後補上 ?limt=100 一次取得 100 筆。

不過上限也是 100 就是了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.