Отсканируй на iPhone, чтобы установить
Get the latest Apple news from one of your favorite tech blogs. Headlines can be previewed in Siri or the widget.
Что нового
Версия 1.0
First release
Что делает
Действий: 13-
CommentGet the latest Apple news from one of your favorite tech blogs. Headlines can be previewed in Siri or the widget.
-
Set VariableLines
-
CommentEnter the name of the publication to fetch headlines from.
-
Text
-
CommentEnter the RSS feed of the blog you want to fetch headlines from.
-
URLhttps://9to5mac.com/feed/
-
Get Items from RSS Feed
-
Repeat with Each
-
Get Name
-
Add to Variable
-
Text
-
Set VariableLines
-
Show Result
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#define color blue
#define glyph phone
// Get the latest Apple news from one of your favorite tech blogs. Headlines can be previewed in Siri or the widget.
@Lines = nil
// Enter the name of the publication to fetch headlines from.
const SiteName = "9to5Mac"
// Enter the RSS feed of the blog you want to fetch headlines from.
const RSSURL = url("https://9to5mac.com/feed/")
getRSS(7, RSSURL)
for _ in nil {
getName(nil)
@News = nil
@Lines = "{@Lines}\n\n{}"
}
show("Reading the latest news from {SiteName}...\n{@Lines}")
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от widowild
Вам также может понравиться
Реклама