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 Introduction

Dcard.js

https://www.npmjs.com/package/dcard
Dcard.js 是一個給 Node.js 開發者的非官方 Dcard 套件,本套件支援登入、取得文章、抽卡 ... 等諸多功能

English README

安裝

npm version

$ npm install --save dcard

開始使用

Import

您可以僅 import 您需要的功能或者 import 整個套件

// es6 (建議)
import { posts, dcard } from "dcard";

// or (import 所有 api)
import * as api from "dcard";

// es5
var api = require("dcard");

你可以到 example 看一些簡單的使用範例

文件

完整文件
我們正在完善化我們的文件,如果您有興趣,歡迎加入一同協作!

如何貢獻

歡迎大家發 PR 或 Issues,讓本專案更加的完整好用 :)

作者

LICENSE

The MIT License (MIT)

Copyright (c) 2020 Hao-Wei Jeng, Che-Wei Lin, Kai Hao

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

dcard.js's People

Contributors

davidyen1124 avatar john-lin avatar kevin940726 avatar lockys avatar wildskyf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dcard.js's Issues

文件可以加 limit 這個參數

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

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

不過上限也是 100 就是了。

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 會使用,
所以我覺得沒有必要使用英文來增加各位朋友的困擾其實。

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.