using IronWebScraper 授權金鑰
若您決定購買 IronWebScraper 的授權,付款完成後將立即收到授權金鑰。 此授權條款將顯示於結帳畫面,並透過電子郵件發送。
透過程式碼設定您的 IronWebscraper 授權金鑰
請將此程式碼加入應用程式的啟動階段,並在呼叫 IronWebScraper 之前執行。
// Set the license key for IronWebScraper at the startup of your application.
IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01";
// Set the license key for IronWebScraper at the startup of your application.
IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01";
' Set the license key for IronWebScraper at the startup of your application.
IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01"
透過 Web.Config 或 App.Config 設定您的 IronWebScraper 授權金鑰
若要透過 Web.Config 或 App.Config 在應用程式中全域套用某個金鑰,請在設定檔的 appSettings 區段中加入以下金鑰:
<configuration>
...
<appSettings>
<add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
<configuration>
...
<appSettings>
<add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
IronWebScraper 版本 2023.4.13 至 2024.3.6 在專案中存在已知的授權問題:
- ASP.NET 專案
- .NET Framework 版本 >= 4.6.2
產品並未讀取或使用儲存於 Web.config 檔案中的金鑰。 請參閱"在 Web.config 中設定授權金鑰"的疑難排解文章以了解更多資訊。
若要測試您的金鑰是否已正確安裝
// Test if the IronWebScraper license key is valid.
bool result = IronWebScraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01");
// Test if the IronWebScraper license key is valid.
bool result = IronWebScraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01");
' Test if the IronWebScraper license key is valid.
Dim result As Boolean = IronWebScraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01")
開始您的專案
請參閱我們的教學指南,了解如何開始使用 IronWebscraper。
常見問題
購買網頁抓取授權後,該如何取得授權金鑰?
購買授權後,待付款完成,您將立即收到 IronWebScraper 授權金鑰。該金鑰將顯示於結帳畫面,並透過電子郵件發送給您。
如何在 C# 應用程式中透過程式碼設定我的網頁擷取工具授權金鑰?
您可透過以下程式碼,在應用程式啟動時設定 IronWebScraper 授權金鑰:IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01";
如何透過 Web.Config 或 App.Config 設定我的網頁爬蟲授權金鑰?
若要全域套用您的 IronWebScraper 授權金鑰,請將其新增至設定檔中的 appSettings 區段:
若我的授權金鑰在 ASP.NET 專案的 Web.config 檔案中無法被識別,該如何處理?
IronWebScraper 版本 2023.4.13 至 2024.3.6 存在已知問題,即在使用 .NET Framework 版本 >= 4.6.2 的 ASP.NET 專案中,Web.config 檔案中儲存的金鑰無法被使用。請參閱疑難排解文章以獲取更多資訊。
如何確認我的網頁抓取工具授權金鑰已正確安裝?
您可以透過執行以下程式碼片段來驗證 IronWebscraper 授權金鑰的安裝狀態:bool result = IronWebscraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01");
哪裡可以找到開始使用網頁抓取工具的教學?
我們提供了一份關於 IronWebscraper 入門的完整教學指南。您可透過網頁上提供的連結進行查閱。
IronWebscraper 是否支援 .NET 10?在此平台上,授權金鑰的使用方式是否與其他平台相同?
是的——IronWebScraper 支援 .NET 10 及其他平台(.NET 9、8、7、6、5、Core 版本、Standard 2),詳見 NuGet Gallery 列表。 在 .NET 10 上,授權金鑰的使用方式與其他版本相同:您可以透過 License.LicenseKey 屬性、設定檔(例如 appsettings.json 或 Web.Config / App.Config)進行設定,並使用 License.IsValidLicense 進行驗證。([nuget.org](https://www.nuget.org/packages/IronWebscraper/?utm_source=openai))

