Socket
Socket
Sign inDemoInstall

github.com/danielmensah/webcrawler

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/danielmensah/webcrawler


Version published
Created
Source

Web Crawler

This is a simple webcrawler that crawls a given URL as well as visiting the links on the page. This crawler avoids visiting the same URL twice, and any external links are ignored.

Requirements

These dependencies can also be installed with Homebrew.

  • Requires Go 1.18 or greater. This can be installed with brew brew install go or downloaded here.
  • Requires Golangci Lint. This can be installed with brew brew install golangci-lint or downloaded here.

Install Dependencies

Install dependencies, issue the following command(s):

make install

Testing and Formatting

To run the tests, issue the following command(s):

make test
Lint only

Run linting only:

make lint

How to Run

To run the application with the default settings, simply issue the following example command(s):

make run https://example.com/

If you wish to change the default settings, navigate to cmd/main.go and change the default settings. Here is the list of settings that can be changed:

  • retryMax: The maximum number of times to retry a failed request.
  • retryMaxWait: The maximum amount of time to wait before retrying a failed request.
  • workers: The number of concurrent workers to use.

FAQs

Package last updated on 23 Jun 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc