Git Product home page Git Product logo

webcrawler's Introduction

Simple Web Crawler Tool

Crawls a single domain, printing out a list of links for each new page that it finds.

Instructions:

Clone the repo into $GOPATH/src and do the following:

get deps:

 # inside the repo
 $ go get 

build:

# inside the repo
$ go build

crawl:

# inside the repo
$ ./webcrawler -u <url> -depth 2
   
   - here depth is to provide the depth to traverse given url 

example:

# inside the repo
$ ./webcrawler -u https://www.redhat.com -depth 3

Using Docker.

  1. Create docker image using following command.

     Docker build -t webcrawler:tag .
    
  2. Run

    docker run --rm -ti webcrawler:tag -url https://stackoverflow.com

    OR

  3. pull image from my registry and run

     docker pull amydocker/webcrawler:v2.0
     
     docker run --rm -ti amydocker/webcrawler:v2.0 -url https://www.redhat.com
    

Flow Diagram

View of sitemap

webcrawler's People

Contributors

shwethakumbla avatar

Watchers

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