rss-thread-watcher/README.org

129 lines
6.2 KiB
Org Mode
Raw Normal View History

2023-12-21 01:17:00 +01:00
#+OPTIONS: toc:nil
2023-12-21 00:58:13 +01:00
* RSS based thread watcher
Get notifications from your feed reader when your favourite /mlp/ thread is about to die
2023-12-21 01:19:16 +01:00
** Usage
2023-12-21 00:58:13 +01:00
1) Open your RSS feed reader (you have one right?)
2) Add your custom URL (see getting custom URL)
3) Enable notifications in your feed reader and set update interval to 5minutes or more (you can set less but the feed is updated
only every 5 minutes)
4) Profit! RSS feed will include only the threads matching your querry so every notification your feed reader will send means your
watched thread is about to die
2023-12-24 02:45:48 +01:00
*NOTE THAT THIS IS AN ALPHA RELEASE, IF YOUR THREAD DIES BECAUSE OF RSS-WATCHER MALLFUNCTION DO NOT BLAME ME* pls
2023-12-21 01:19:16 +01:00
** Getting custom URL
2023-12-21 00:58:13 +01:00
2023-12-24 02:41:53 +01:00
URL without any params (just ~/feed.xml~) won't work. You must specify at least one ~q~. See bellow.
2023-12-21 01:19:16 +01:00
*** Crafting URL by hand
2023-12-21 00:58:13 +01:00
Right now there is no automated way to generate your feed url but making one by hand is fairly simple.
2023-12-22 01:34:41 +01:00
**** URL parameters
| Param name | Values [default] | Can have multiple? | Mandatory? | Short description |
|------------+-------------------------+--------------------+-------------------------+--------------------------------------------------------------------------------------------------|
| board | "mlp" | No | No (not implemented) | Which board to generate feed for, *ONLY* /mlp/ is supported |
| q | nil | Yes | Yes (1 or more) | This string is used to filter threads according to their titles |
| chod | 60-99 [94] | No | No | CHanceOfDeath - will include thread in the feed if it's chance to death i > chod |
| repeat | true, paranoid, [false] | No | No (partly implemented) | Whether to make new notification on every server update even when thread doesnt have higher chod |
| recreate | ~bool~ | Not implemented | Not implemented | Whether to notify when creation of new thread matching querry is detected (uses 4chans RSS) |
2023-12-22 18:32:36 +01:00
**** How to create URL
2023-12-22 01:34:41 +01:00
2023-12-25 23:58:03 +01:00
Standart rules of URLs apply, if you know how to pass params in URL to any website, you don't even have to read this
2023-12-24 01:39:53 +01:00
- Open some text editor
- Paste in default URL: ~https://tools.treebrary.org/thread-watcher/feed.xml?~ (you can use plain HTTP if you want to)
- Now you can append any of the supported parameters (which you can find in the above table):
2023-12-25 23:58:03 +01:00
- For example if we want to be informed about threads with "cute" in their title
2023-12-24 01:39:53 +01:00
- ~q=cute~ which would make ~https://tools.treebrary.org/thread-watcher/feed.xml?q=cute~
- If you want more than one param, separate with ~&~, for example:
2023-12-24 01:53:56 +01:00
- ~q=cute~ and ~q=pretty~ would be ~https://tools.treebrary.org/thread-watcher/feed.xml?q=cute&q=pretty~
2023-12-24 01:39:53 +01:00
- Same is true for when you also want to specify ChoD
- ~https://tools.treebrary.org/thread-watcher/feed.xml?q=cute&q=pretty&chod=98~
- This will only notify you about threads that:
- Have ~cute~ or ~pretty~ in their title
- Are in the lowest 98% part of catalog (it's on position ~147/150 e.g. 3 threads before being bumped off)
- Note that ~//~ are not special characters ~q=/general/~ will work as expected and match thread with "/general/" in it's title
- Also note that regex is *NOT* supported for now, so something like ~q=rainbow*~ will only match threads with "rainbow" followed
immedidatelly by ~*~
2023-12-24 01:39:53 +01:00
in their title
2023-12-21 01:19:16 +01:00
*** Generating URL interactively
2023-12-21 00:58:13 +01:00
Coming soon
2023-12-21 01:19:16 +01:00
** Limitations
2023-12-21 00:58:13 +01:00
This is an experimental project. There are several limitations:
- Only supported board is /mlp/ (You can choose your own when self hosting)
- Only searched threads are those who are in the 50% closer to death part of the catalog
2023-12-25 10:55:43 +01:00
*** Bugs
See [[https://git.treebrary.org/Treebrary.org/rss-thread-watcher/issues][issues]]
2023-12-21 01:19:16 +01:00
** Feature set
2023-12-21 00:58:13 +01:00
2023-12-24 02:41:53 +01:00
- Planned/finnished features [23%]
- [X] [DONE] Super basic features done (feed, query, repeat)
2023-12-24 02:09:59 +01:00
- [X] Have proper sorting - The most likely to die threads first
2023-12-24 02:41:53 +01:00
- [X] No params request should redirect to url generator or (for now) documentation
2023-12-21 00:58:13 +01:00
- [ ] Config file instead of hardcoding config values
- [ ] Include time of latest data fetch
2023-12-23 03:25:38 +01:00
- [ ] Make threads have preview images taken from the actuall thread OP
- [ ] Show which query matched the thread you were notified of
- [ ] Option to include advanced HTML formating of text (different color text for ChoD etc)
2023-12-21 00:58:13 +01:00
- [ ] Support notification on watched thread re-creation after it died
- [ ] Support notification for thread death
- [ ] Support multiple boards at once
- [ ] Support async responses
- [ ] Graal VM support for native configuration
** Self hosting
This is not supported until release 1.0. You can do it if you figure it out (probably not that hard tbh) but there will be much
more detailed instructions in the future.
*** Prebuilt
There will be instructions at some point I promise. Until then you can download binaries from the releases page and run them like
you would any other java executable, default port is ~6969~.
And you need Java for now if that isn't clear.
~$ java -jar whatEverNameTheReleaseHas.jar~~
*** From source
If you know Clojure, then just clone and build with lein. If you don't either RTFM to lein or wait before instructions will be
avaiabile here.
*** Configuring
2023-12-21 01:19:16 +01:00
Self hosting is not supported at the moment so no configuration for you.
2023-12-21 00:58:13 +01:00
2023-12-24 01:53:56 +01:00
*** Contributing
[[https://treebrary.org/about-the-git-server.html][See]]
2023-12-21 00:58:13 +01:00
** License - AGPL3
Copyright © 2023 Felisp
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.