.NET Unofficial library for ScrapingBee API
Nuget Package: Orbital7.Apis.ScrapingBee
Example usage:
var scrapingBeeClient = new ScrapingBeeClient("YOUR-API-KEY");
var response = await scrapingBeeClient.ScrapeAsync(
new ScrapeRequest("https://dotnet.microsoft.com/")
{
RenderJs = false,
});
To run the included Unit Tests within Visual Studio:
- Right-click on the Orbital7.Apis.ScrapingBee.Tests project and select Manage User Secrets.
- Within the resulting file editor for secrets.json, create a json entry for "ScrapingBeeApiKey" and add your API Key as the value.
- Run the unit tests via the Test Explorer window.