[PATCH] Add config for linus.dev/posts/
Export this patch
---
Submitting my other config file as requested. Apologies for the wait. It
slipped my mind and I don't check this inbox very often.
confs/linus.dev-blog.yml | 45 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 confs/linus.dev-blog.yml
diff --git a/confs/linus.dev-blog.yml b/confs/linus.dev-blog.yml
new file mode 100644
index 0000000..6480abc
--- /dev/null
+++ b/confs/linus.dev-blog.yml
@@ -0,0 +1,45 @@
+regex: https://linus.dev/posts/
+selectors:
+ httpsettings:
+ cookie: {}
+ header: {}
+ useragent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
+ Chrome/90.0.4430.72 Safari/537.36
+ insecure: false
+ feed:
+ title: title
+ titleattr: ""
+ description: ""
+ descriptionattr: ""
+ authorname: ""
+ authornameattr: ""
+ authoremail: ""
+ authoremailattr: ""
+ item:
+ container: li
+ title: |-
+ -- Dummy second line to activate the Lua parser
+ print(string.sub(sel:text(), 16))
+ titleattr: ""
+ link: |-
+ link = sel:find("a"):attr("href")
+ if link:match("^/") then
+ link = "https://linus.dev" .. link
+ end
+ print(link)
+ linkattr: ""
+ created: |-
+ -- Dummy second line to activate the Lua parser
+ print(string.sub(sel:text(), 1, 10))
+ createdattr: ""
+ createdformat: "2006-01-02"
+ description: ""
+ descriptionattr: ""
+ content: ""
+ contentattr: ""
+ image: ""
+ imageattr: ""
+ nextpage: ""
+ nextpageattr: ""
+ nextpagecount: 0
+ sort: ""
--
2.38.0
Every contribution is great. Thank you :)