前言介紹
- 這款 WordPress 外掛「Curlest」是 2024-04-16 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2025-04-08,距離現在已有 31 天。
- 外掛最低要求 WordPress 6.2 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
curlest |
內容簡介
總結:
這個外掛提供了一個名為"curlest"的捷徑(shortcode),可以將給定HTTP URL的原始內容擷取並顯示為捷徑的輸出。
問題與答案:
1. 這個外掛使用第三方服務嗎?
答案: 這個外掛並不使用任何第三方服務,也沒有收集或提交任何數據。
2. 該如何使用這個外掛?
答案: 首先安裝並啟用外掛,然後在WordPress文章或頁面中使用"Curlest"捷徑:
[curlest url="" cache="" timeout="" selector=""]
3. 有效的url值是什麼?
答案: 例如https://example.com/index.html
4. 有效的快取(cache)值有哪些?
答案: nocache表示不進行快取,即每次捷徑請求時都全新獲取URL內容。另外,根據給定的間隔(N為數字),如N秒、N分鐘、N小時、N天,可根據可用的快取URL內容作出回應。
5. 有效的超時(timeout)值是什麼?
答案: 任何數字,例如30代表30秒。這個參數指示在獲取URL時等待回應多長時間,如超過時間則回傳空字符串。
6. 有效的選擇器(selector)值是什麼?
答案: 任何CSS選擇器,例如div.a div.b.c .d-e,從擷取的HTML文檔內容中返回內部HTML,前提是擷取的URL內容是有效HTML,否則捷徑的輸出將為空。
原文外掛簡介
This plugin provides a shortcode (called “curlest”) that 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 new URL contents fresh during each shortcode request
The following 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 may respond with cached URL contents, if the cached data has not expired yet based on the given interval. The difference with the above is that, in the above, if the cached data is stale (expired), it will still be responded, but with the below (the added fresh option), stale data will never be responded, new data will first be fetched during the shortcode request before it is responded, 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.
Valud values for selector:
Any CSS selector, for example div.a div.b.c .d-e to return the inner HTML, as per a given CSS selector, from the contents of a fetched HTML document. This assumes that the fetched URL contents is valid HTML, otherwise, the shortcode’s output will be blank.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Curlest」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。