使用 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";使用 Web.Config 或 App.Config 設定 IronWebScraper 授權金鑰。
若要使用 Web.Config 或 App.Config 將金鑰全域套用至您的應用程序,請將下列金鑰新增至 appSettings 中的設定檔。
<configuration>
...
<appSettings>
<!-- Add your IronWebScraper license key here -->
<add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration><configuration>
...
<appSettings>
<!-- Add your IronWebScraper license key here -->
<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");開始你的專案
請按照我們的教學了解如何開始使用 IronWebScraper 。
常見問題解答
購買網路爬蟲許可證後,如何取得我的許可證密鑰?
購買許可證後,付款成功後您將立即收到 IronWebScraper 許可證密鑰。密鑰將顯示在結帳頁面,同時也會透過電子郵件發送給您。
如何在 C# 應用程式中以程式設計方式設定我的網路爬蟲許可證金鑰?
您可以使用下列程式碼在應用程式啟動時設定 IronWebScraper 授權金鑰: IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01";
如何使用 Web.Config 或 App.Config 設定我的網路爬蟲許可證金鑰?
若要全域套用您的 IronWebScraper 授權金鑰,請將其新增至 appSettings 下的設定檔: <add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
如果我的許可證金鑰在 ASP.NET 專案的 Web.config 檔案中無法識別,我該怎麼辦?
IronWebScraper 版本 2023.4.13 至 2024.3.6 有已知問題,即儲存在 Web.config 檔案中的金鑰在 .NET Framework 版本 >= 4.6.2 的 ASP.NET 專案中無法使用。有關更多信息,請參閱故障排除文章。
如何驗證我的網路爬蟲許可證金鑰是否已正確安裝?
您可以執行以下程式碼片段來驗證 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))






