diff --git a/README.md b/README.md index 997a4433..fbbc7cfd 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The functionality of scraping websites and building the RSS is provided by the R docker run -p 3000:3000 gilcreator/html2rss-web ``` -and open in your browser. +and open in your browser and click onto the example feed link. This is the quickest way to get started. However, it's also the one with least flexibility: it doesn't allow to use custom feed configs and doesn't update automatically. @@ -73,12 +73,12 @@ html2rss-web comes with many feed configs out of the box. [See file list of all To use a config from there, build the URL like this: -The _feed config_ you'd like to use: -`lib/html2rss/configs/domainname.tld/whatever.yml` +The _feed config_ you'd like to use: +`lib/html2rss/configs/domainname.tld/whatever.yml` `‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌^^^^^^^^^^^^^^^^^^^^^^^^^^^` -The corresponding URL: -`http://localhost:3000/domainname.tld/whatever.rss` +The corresponding URL: +`http://localhost:3000/domainname.tld/whatever.rss` `‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ^^^^^^^^^^^^^^^^^^^^^^^^^^^` ## How to build your RSS feeds diff --git a/config/feeds.yml b/config/feeds.yml index 38a7663d..b883e9c9 100644 --- a/config/feeds.yml +++ b/config/feeds.yml @@ -1,18 +1,21 @@ stylesheets: - - href: '/rss.xsl' - media: 'all' - type: 'text/xsl' + - href: "/rss.xsl" + media: "all" + type: "text/xsl" headers: - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" feeds: # your custom feeds go here: example: channel: - url: https://html2rss.github.io/ + url: https://github.com/html2rss/html2rss-web/commits/master + title: Latest commits on html2rss-web's master branch. + ttl: 120 selectors: items: - selector: '[role=main]' + selector: "ol > li > div" title: - selector: 'h1' - description: - selector: 'p' + selector: "p" + link: + selector: "a" + extractor: "href" diff --git a/views/index.erb b/views/index.erb index 2112b01b..a2e8c34c 100644 --- a/views/index.erb +++ b/views/index.erb @@ -4,6 +4,11 @@ instance +

+ Check out the + example.rss. +

+

Find out more about the html2rss ecosystem at the project website.