From 86f983c22c627d00c945104ef3018b41a5429c28 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 5 Aug 2019 00:48:06 +0100 Subject: [PATCH] Add ocremixes example --- examples/ocremix-remixes.toml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/ocremix-remixes.toml diff --git a/examples/ocremix-remixes.toml b/examples/ocremix-remixes.toml new file mode 100644 index 0000000..ed0e73e --- /dev/null +++ b/examples/ocremix-remixes.toml @@ -0,0 +1,31 @@ +[feed] +output = "OCReMix-Remixes.atom" + +# Actual Official Feed: http://ocremix.org/feeds/ten20/ +url = "https://ocremix.org/remixes/?&offset=0&sort=datedesc" + +source_type = "html" + +title = "OCReMixes" +subtitle = "Latest remixes on OC ReMix" + +logo_url = { selector = ".header", attribute = "src" } + +[entries] +selector = ".area-link" +title = "{{a.main.featured}} by {{td:nth-child(2) a.featured}} - {{.color-secondary}}" +content = """ +

{a}

+

{a.main.featured}

+

{td:nth-child(2)}

+

Remixing {.color-secondary}

+""" + +url = { selector = "a.main.featured", attribute = "href" } +# or, for a direct link to YouTube: +#url = { selector = "a.main.featured", attribute = "data-preview" } + +author_name = { selector = "td:nth-child(2) a.featured" } + +published = { selector = "td:nth-child(3)", attribute = "" } +# last_updated = { selector = "", attribute = "" }