# DotNetExpose **Repository Path**: lanicon/DotNetExpose ## Basic Information - **Project Name**: DotNetExpose - **Description**: A package that helps you to scrap web pages. It shows you a lot of information about the page. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-20 - **Last Updated**: 2021-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DotNetExpose [![Build Status](https://travis-ci.org/joao2391/DotNetExpose.svg?branch=master)](https://travis-ci.org/joao2391/DotNetExpose) [![Nuget](https://img.shields.io/nuget/v/DotNetExpose)](https://www.nuget.org/packages/DotNetExpose/) ![Nuget](https://img.shields.io/nuget/dt/DotNetExpose) DotNetExpose is a .Net library for helping you to scrap web pages. It shows you a lot of information about the page. You can use both in .NET Framework 4.x and .NET Core 2.x applications. ## Notes Version 1.0.4: Changed to .NET 5 ## Installation Use the package manager to install. ```bash Install-Package DotNetExpose -Version 1.0.4 ``` ## Usage After install the package: ```C# using Expose.Main; ``` Create an instance of ExposeHtmlDocument. The constructor needs an URL. This URL will be scraped. ```C# const string URL = "https://www.google.com.br/" ExposeHtmlDocument expose = new ExposeHtmlDocument(URL); ``` Return total of CSS files referenced in the html page ```C# int countCSS = expose.CountCSSAsync(); ``` Return total of JS files referenced in the html page ```C int countJS = expose.CountJSAsync(); ``` Return total of Html Elements ```C# int countHtmlElements = CountHtmlElementsAsync(); ``` Return total of META elements ```C# int countMetaTags = expose.CountMetaAsync(); ``` Return all the JS content ```C# HashSet hsJS = expose.GetJSContentAsync(); ``` Return all the CSS content ```C# HashSet hsCSS = expose.GetCSSContentAsync(); ``` Return the total of onclick events in all elements in the html ```C# int countOnclickEvents = expose.CountOnclickEventsAsync(); ``` Return the total of Forms in html page ```C# int countForms = expose.CountFormsAsync(); ``` Return the Action and HttpMethod from Form ```C# Dictionary dicFormInfo = expose.FormsInfoAsync(); ``` Return the size in Kb of the page ```C# long? pageSize = expose.GetSizeOfPageAsync(); ``` Return the JSON with the amount of info found ```C# string report = expose.GetReportAsync(); ``` Return True/False ```C# bool hasAjaxCall = expose.HasAjaxCallAsync(); ``` ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License [MIT](https://choosealicense.com/licenses/mit/)