Giter VIP home page Giter VIP logo

webcrawler's Introduction

WebCrawler

WebCrawler allows to extract all accessible URLs from a website. It's built using .NET Core and .NET Standard 1.4, so you can host it anywhere (Windows, Linux, Mac).

The crawler does not use regex to find links. Instead, Web pages are parsed using AngleSharp, a parser which is built upon the official W3C specification. This allows to parse pages as a browser and handle tricky tags such as base.

For HTML files, URLs are extracted from:

  • <a href="...">
  • <area href="...">
  • <audio src="...">
  • <iframe src="...">
  • <img src="...">
  • <img srcset="...">
  • <link href="...">
  • <object data="...">
  • <script src="...">
  • <source src="...">
  • <source srcset="...">
  • <track src="...">
  • <video src="...">
  • <video poster="...">
  • <... style="..."> (see CSS section)

For CSS files, URLs are extracted from:

  • rule: url(...)

Web Crawler

How to deploy on Azure (free)

You can deploy the website on Azure for free:

  1. Create a free Web App
  2. Enable WebSockets in Application Settings (Introduction to WebSockets on Windows Azure Web Sites, Using Web Sockets with ASP.NET Core)
  3. Deploy the website using WebDeploy or FTP

Blog posts

Some parts of the code are explained in blog posts:

webcrawler's People

Contributors

dependabot[bot] avatar meziantou avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.