Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.11 KB

readme.org

File metadata and controls

31 lines (22 loc) · 1.11 KB

clj-zhihu

A fully functional programming Clojure library designed to log into Zhihu, which is a Q&A website in China, and perform various actions.

Installation

https://img.shields.io/clojars/v/clj_zhihu.svg

Usage

(require '[clj_zhihu.core :refer :all])
;; To get a cookie-store, use utils/login function
;; Go with the power of functions!
(binding [clj-http.core/*cookie-store* cookie-store]
  (-> (question "https://www.zhihu.com/question/41945693")
      ((juxt question-title question-description question-tags))))
=> ["是不是喜欢东方project的男生很大一部分都有女装的倾向?为什么会这样呢?"
 "其他的比如喜欢舰的,或者拉拉人呢?是因为喜欢可爱的女孩子喜欢得走火入魔了,所以自己也想变成可爱的女♂孩♂子了吗?全是女孩子的环境,会给人很想搞姬的冲动吧。"
 ("伪娘" "东方Project" "舰队 Collection" "LoveLive!(ラブライブ!)" "女装少年")]

TODO

License

Copyright © 2015 Xiangru Lian <[email protected]>

Distributed under the GPLv3.