Web Actions
Table of contents
Articles
Get Article from Webpage
Get article from webpage
in article.
getArticle(text webpage)
Get Article Detail
Get detail
from article
.
getArticleDetail(variable article, text detail)
Giphy
Search Giphy
Search Giphy for query
.
searchGiphy(text query)
Get Number of Gifs from Giphy
Get gifs
number of gifs from Giphy for query
.
getGifs(text query, integer ?gifs = 1)
RSS
Get RSS Feed
Get items
number of items from RSS feed at url
.
getRSS(integer items, text url)
Get RSS Feed from URL
Get RSS feeds from urls.
getRSSFeeds(text urls)
Safari
Add to Reading List
Add url
to the users reading list.
addToReadingList(text url)
Get Current URL
Get current web page url.
getCurrentURL()
Get Webpage Detail
Get detail
of webpage
.
getWebPageDetail(variable webpage, enum detail)
Details
- Page Contents
- Page Selection
- Page URL
- Name
Open URLs
Open url
in default browser. Accepts a variable containing multiple URLs.
openURL(text url)
Run JavaScript on Current Webpage
Run script
on currently active tab as JavaScript.
runJavaScriptOnWebpage(text script)
Search the Web
Search the web for query
using engine
.
searchWeb(enum engine, text query)
Engines
- Amazon
- Bing
- DuckDuckGo
- eBay
- Yahoo!
- YouTube
Show Webpage
Show the webpage at url
, optionally with Safari reader enabled.
showWebpage(text url, boolean ?useReader)
URLs
Expand URL
Expand url
. This is generally used for short urls.
expandURL(text url)
Get Detail of URL
Get detail
from url
.
getURLDetail(text url, enum detail)
Details
- Scheme
- User
- Password
- Host
- Port
- Path
- Query
- Fragment
Get URLs from Input
Get URLs from input
.
getURLs(variable input)
URL Value
Create url value of url
. No limit on url
arguments.
url(text ...url)
Example Usage
url("https://cherrilang.org","https://routinehub.co")
Web Requests
Download Contents of URL
Download contents of url
.
downloadURL(text url, dictionary ?headers)
Form Request
Send a method
request to url
with body
.
formRequest(text url, enum ?method = "GET", dictionary ?body, dictionary ?headers)
HTTP Methods
GET
POST
PUT
PATCH
DELETE
JSON Request
Send a method
JSON request to url
with body
.
jsonRequest(text url, enum ?method = "GET", dictionary ?body, dictionary ?headers)
File Request
Send a method
file request to url
with body
.
fileRequest(text url, enum ?method = "GET", dictionary ?body, dictionary ?headers)
Get Contents of Webpage
Get contents of webpage at url
.
getWebpageContents(text url)
Get URL Headers
Get headers for url
.
getURLHeaders(text url)