Created
February 1, 2024 02:59
-
-
Save PxyUp/d92238d6ad069d590c6daf875a6a1f14 to your computer and use it in GitHub Desktop.
Telegram json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "http_server": { | |
| "port": 8080 | |
| }, | |
| "items": [ | |
| { | |
| "name": "telegram", | |
| "connector_config": { | |
| "response_type": "HTML", | |
| "url": "https://www.google.com/search?q=telegram+{{{FromInput=value}}}", | |
| "browser_config": { | |
| "playwright": { | |
| "timeout": 15, | |
| "wait": 10, | |
| "browser": "WebKit" | |
| } | |
| } | |
| }, | |
| "notifier_config": { | |
| "send_array_by_item": true, | |
| "telegram_bot": { | |
| "token": "{{{FromEnv=TELEGRAM_TOKEN}}}", | |
| "users_id": [ | |
| -1001320913894 | |
| ], | |
| "pretty": true | |
| } | |
| }, | |
| "trigger_config": { | |
| "http_trigger": {} | |
| }, | |
| "model": { | |
| "is_array": true, | |
| "base_field": { | |
| "type": "string", | |
| "path": "#search div div div span a:has(h3)", | |
| "html_attribute": "href", | |
| "generated": { | |
| "model": { | |
| "type": "array", | |
| "path": "@reverse", | |
| "model": { | |
| "array_config": { | |
| "root_path": "main .tgme_widget_message_wrap", | |
| "reverse": true, | |
| "length_limit": 5, | |
| "item_config": { | |
| "fields": { | |
| "title": { | |
| "base_field": { | |
| "type": "string", | |
| "path": ".tgme_widget_message_text" | |
| } | |
| }, | |
| "link": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "a.tgme_widget_message_date", | |
| "html_attribute": "href", | |
| "generated": { | |
| "formatted": { | |
| "template": "{PL}" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "connector_config": { | |
| "response_type": "HTML", | |
| "url": "{PL}", | |
| "server_config": { | |
| "method": "GET" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "2ch", | |
| "connector_config": { | |
| "response_type": "HTML", | |
| "url": "https://2ch.hk/po/", | |
| "server_config": { | |
| "method": "GET" | |
| } | |
| }, | |
| "model": { | |
| "array_config": { | |
| "root_path": "#js-posts .thread", | |
| "length_limit": 3, | |
| "item_config": { | |
| "fields": { | |
| "title": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "article.post__message.post__message_op" | |
| } | |
| }, | |
| "link": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "a.post-reply-link", | |
| "html_attribute": "href", | |
| "generated": { | |
| "formatted": { | |
| "template": "https://2ch.hk{PL}" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "trigger_config": { | |
| "http_trigger": {} | |
| }, | |
| "notifier_config": { | |
| "send_array_by_item": true, | |
| "telegram_bot": { | |
| "token": "{{{FromEnv=TELEGRAM_TOKEN}}}", | |
| "users_id": [ | |
| -1001320913894 | |
| ], | |
| "pretty": true | |
| } | |
| } | |
| }, | |
| { | |
| "name": "pikabu", | |
| "connector_config": { | |
| "response_type": "XML", | |
| "url": "https://pikabu.ru/xmlfeeds.php", | |
| "server_config": { | |
| "method": "GET" | |
| } | |
| }, | |
| "model": { | |
| "array_config": { | |
| "root_path": "//channel//item", | |
| "length_limit": 3, | |
| "item_config": { | |
| "fields": { | |
| "title": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "title" | |
| } | |
| }, | |
| "link": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "link" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "trigger_config": { | |
| "http_trigger": {} | |
| }, | |
| "notifier_config": { | |
| "send_array_by_item": true, | |
| "telegram_bot": { | |
| "token": "{{{FromEnv=TELEGRAM_TOKEN}}}", | |
| "users_id": [ | |
| -1001320913894 | |
| ], | |
| "pretty": true | |
| } | |
| } | |
| }, | |
| { | |
| "name": "meduza", | |
| "connector_config": { | |
| "response_type": "XML", | |
| "url": "https://meduza.io/rss/news", | |
| "server_config": { | |
| "method": "GET" | |
| } | |
| }, | |
| "model": { | |
| "array_config": { | |
| "root_path": "/rss/channel/item", | |
| "length_limit": 3, | |
| "item_config": { | |
| "fields": { | |
| "title": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "title" | |
| } | |
| }, | |
| "link": { | |
| "base_field": { | |
| "type": "string", | |
| "path": "link" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "trigger_config": { | |
| "http_trigger": {} | |
| }, | |
| "notifier_config": { | |
| "send_array_by_item": true, | |
| "telegram_bot": { | |
| "token": "{{{FromEnv=TELEGRAM_TOKEN}}}", | |
| "users_id": [ | |
| -1001320913894 | |
| ], | |
| "pretty": true | |
| } | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment