Web Analytics

Optimus

⭐ 85 stars Korean by RusKnyaz

Optimus

Optimus는 .net에서 완전히 구현된 헤드리스 웹 브라우저입니다.

릴리스 노트

다운로드

샘플

콘솔 애플리케이션을 만들고 코드를 붙여넣으세요: ``c# using System.Linq; using Knyaz.Optimus; using Knyaz.Optimus.Dom.Elements; using Console = System.Console;

namespace ConsoleApplication1 { class Program { static async void Main(string[] args) { var engine = EngineBuilder.New() .UseJint()// Enable JavaScripts execution. .Build(); // Builds the Optimus engine. //Request the web page. var page = await engine.OpenUrl("http://google.com"); //Get the document var document = page.Document; //Get DOM items Console.WriteLine("The first document child node is: " + document.FirstChild); Console.WriteLine("The first document body child node is: " + document.Body.FirstChild); Console.WriteLine("The first element tag name is: " + document.ChildNodes.OfType().First().TagName); Console.WriteLine("Whole document innerHTML length is: " + document.DocumentElement.InnerHTML.Length); Console.ReadKey(); } } } ``

프로젝트 구조

라이선스

Optimus는 MIT 라이선스 하에 배포됩니다.

--- Tranlated By Open Ai Tx | Last indexed: 2025-12-01 ---