Code Monkey home page Code Monkey logo

web-scraper's Introduction

Email Addresses Web Scraper

Description

Web scraper for email addresses, based on Selenium Web Driver.

With this scraper, you can scrape email addresses inside websites, based on references inside the URL that contain common words like Contact, About, Privacy and so. You can call Scrape(string URL) few time with a different URLs on the same Scraper and they will be scraped parallelly.

This can be useful for finding contact addresses for some domains that interest you.

Dependencies for the target environment :

How to use

There are few ways that you can start with :

  • Run Program and see the scraping of the websites in the src/WebScraper/web_sites.csv file.
  • Follow tests/ScraperTests/EmailScraperTests.cs to see how to set up and call web scraper on a specific web site.

for example :

var mailScraper = new EmailScraper();
var res = await mailScraper.Scrape("wikipedia.org");

Why we need Selenium or any other browser emulator?

Why can we just download a web page content as a string and look with regular expressions for what we want to find?

The main reason for this is that browser emulators make web pages behave differently, for example, load content that will not be triggered with just WebClient or HttpClient request, and this content can have important content.

There is also some advantage for using browser emulator. It can make things a lot easier, they are programmable like a real browser action and can help us find elements we need a lot easier and with better performance, this is because of the XPath navigation instead of regular expressions and others out of the box features.

web-scraper's People

Contributors

antonygggg 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.