[WordPress] 外掛分享: Curlest

首頁外掛目錄 › Curlest
WordPress 外掛 Curlest 的封面圖片
20+
安裝啟用
尚無評分
18 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.2+ v2.1 上架:2024-04-16

內容簡介

Curlest 外掛提供一個簡碼 [curlest],能夠擷取並顯示指定 HTTP URL 的原始內容,讓使用者輕鬆在 WordPress 文章或頁面中嵌入外部資料。

【主要功能】
• 使用簡碼擷取指定 URL 的內容
• 支援快取機制以提高效能
• 可自訂超時設定以控制請求時間
• 支援 CSS 選擇器提取特定內容
• 無需第三方服務,確保資料安全

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Curlest」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin provides a shortcode called [curlest] which fetches and displays the raw content of a given HTTP URL as the shortcode’s output.
Third party service description
This plugin does not make use of any third party services. No data is collected or submitted by this plugin.
This plugin’s source code may be verified for confirmation.
Usage
Install and activate the plugin.
Use the Curlest shortcode inside a WordPress post or page:
[curlest url="" cache="" timeout="" selector=""]

Valid values for url:

e.g. https://example.com/index.html

Valid values for cache:

nocache: No caching, i.e. always fetch fresh new URL contents during each shortcode request.

The following expressions will always respond with cached URL contents if available, and only fetches new URL data asynchronously, if the cached data has expired based on the given interval, where N is a number:

N s or N seconds
N m or N minutes
N h or N hours

N d or N days

The following expressions may respond with cached URL contents, if the cached data has not yet expired, based on the given interval. The difference between the above expressions and the below is, with the above, if the cached data is stale (expired), the stale data will still be responded, but with the below (i.e. when the fresh option is added), stale data will never be responded; new data will first be fetched during the shortcode request before the new data is responded, where new data is fetched based on the given interval, and where N is a number:

N s fresh or N seconds fresh
N m fresh or N minutes fresh
N h fresh or N hours fresh
N d fresh or N days fresh

Valid values for timeout:

Any number, e.g. 30 for 30 seconds. This parameter indicates how long to wait for a response when fetching the URL, before responding with an empty string.

Valid values for selector:

Any CSS selector, for example div.a div.b.c .d-e to return the inner HTML as per the given CSS selector, from the contents of a fetched HTML document. It is assumed, when a CSS selector expression value is provided for this parameter, that the fetched URL contents is valid HTML; otherwise, if the fetched URL Does not contain valid HTML, the shortcode’s output will be blank.

文章
Filter
Mastodon