-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfefe.llar
More file actions
30 lines (28 loc) · 1.33 KB
/
fefe.llar
File metadata and controls
30 lines (28 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(fetch fefe
(src/selector-feed "https://blog.fefe.de"
{:urls (S/descendant
(S/find-in-text #"\[l\]"))
:ts (S/tag :h3)
:title (S/tag :li)
:content (S/tag :li)}
{:content #(->> % first :content (drop 1))
:author ["Felix von Leitner"]
:urls (fn [l] (map (fn [x] (->> x :attrs :href $parse-url)) l))
:title (fn [l]
($ellipsify
(->> l
first
:content
(drop 1)
first
$hickory-to-html
$html2text
(string/trim))
70))
:ts #(->> %
first
:content
first
($parse-ts "EEE MMM d yyyy"))}
{})
:tags #{:blog})