Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 728 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 728 Bytes

courjera

Clojure wrapper for Coursera Private API

## Examples

;; Get all your watchable videos
(with-coursera-credentials "[email protected]" "yourpassword"
  (let [sessions (enrolled-sessions)
        sections (map session->sections sessions)
        items (mapcat section->items sections)
        videos (map item->video items)]
    (map :link videos)))


;; Get all the videos from session 278
(with-coursera-credentials "[email protected]" "yourpassword"
  (let [sections (session->sections {:id 278})
        items (mapcat section->items sections)
        videos (map item->video items)]
    videos))

;; Same but shorter
(with-coursera-credentials "[email protected]" "yourpassword"
  (session->videos {:id 278}))