You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/gordonbondon/exercises/takehome/webcrawler1

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gordonbondon/exercises/takehome/webcrawler1

v0.0.0-20210623163905-1135c73a951b
Source
Go
Version published
Created
Source

webcrawler1

Write a simple web crawler. Given a starting URL, the crawler should visit each URL it finds on the same domain. It should print each URL visited, and a list of links found on that page. The crawler should be limited to one subdomain - so when you start with https://example.com/, it would crawl all pages on the example.com website, but not follow external links, for example to facebook.com or community.example.com.

Running

go build -o crawler .
./crawler -url https://example.com/

FAQs

Package last updated on 23 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts