NReco.PhantomJS 1.1.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package NReco.PhantomJS --version 1.1.0
NuGet\Install-Package NReco.PhantomJS -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NReco.PhantomJS" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NReco.PhantomJS --version 1.1.0
#r "nuget: NReco.PhantomJS, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NReco.PhantomJS as a Cake Addin
#addin nuget:?package=NReco.PhantomJS&version=1.1.0

// Install NReco.PhantomJS as a Cake Tool
#tool nuget:?package=NReco.PhantomJS&version=1.1.0

NReco.PhantomJS is a .NET wrapper for running PhantomJS (headless WebKit browser) from C#/.NET code. PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.
How to use:

var phantomJS = new PhantomJS();
phantomJS.OutputReceived += (sender, e) => {
 Console.WriteLine("PhantomJS output: {0}", e.Data);
};
phantomJS.RunScript("console.log('hello from js '); phantom.exit();", null);

More info (online demo, examples): https://www.nrecosite.com/phantomjs_wrapper_net.aspx

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on NReco.PhantomJS:

Package Downloads
AbotX

A powerful C# web crawler that makes advanced crawling features easy to use. AbotX builds upon the open source Abot C# Web Crawler by providing a powerful set of wrappers and extensions.

HakkauWebScreenshot

My package description.

WebScreenshot

My package description.

EChartsGen

Create ECharts Graphic in native .Net environment

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 6,686 5/4/2023
1.0.4 324,254 6/2/2017
1.0.3 184,248 2/24/2016
1.0.2 52,564 8/3/2015
1.0.1 7,925 4/5/2015

Note: in the case of .NET Core / NET6+ app don't forget to initialize ToolPath/PhantomJsExeName properties and deploy/install PhantomJS separately (for Windows deployments you may reference "PhantomJS" nuget).

v.1.1.0 changes:
- added netstandard2.0 / net45 builds for better compatibility with modern .NET versions
- removed legacy targets (netstandard1.5 / net40)

v.1.0.4 changes:
- workaround for "No process is associated with this object" exception on Process.HasExited check
- added .NET Core-compatible (netstandard1.5) build (requires commercial license key)

v.1.0.3 changes:
- fixed exception handling issue with RunScriptAsync
- now PhantomJS implements IDisposable (Dispose kills phantomjs process if needed)
- now NReco.PhantomJS is a signed assembly
- PhantomJS nuget package dependency changed to latest 2.1.1 (wrapper still can work with 2.0.0)