Update package names, env vars, cookie, and default ntfy topics while keeping SCRUNNER_* fallbacks. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
611 B
YAML
23 lines
611 B
YAML
name: Comic - monkeyuser to ntfy
|
|
scripts:
|
|
- script: fetch-html.js
|
|
config:
|
|
url: "https://www.monkeyuser.com/"
|
|
outputVar: "httpResponse"
|
|
selector: ".comic img"
|
|
jsonata: |
|
|
{"url": "https://www.monkeyuser.com" & [attributes.src][0], "title": [attributes.title][0]}
|
|
- script: jsonata.js
|
|
config:
|
|
expression: |
|
|
{"data": {"title": httpResponse.title, "message": httpResponse.title, "attach": httpResponse.url}}
|
|
- fetch-binary.js
|
|
- script: ntfy.js
|
|
config:
|
|
url: https://ntfy.sh/jerapah-flow
|
|
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /new
|