Skip to content
/ crawler Public

A simple web crawler to explore concurrency in Go

License

Notifications You must be signed in to change notification settings

anr/crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crawler

A simple web crawler to explore concurrency in Go.

Running

Flags:

  -limit int
        max number of pages to visit (default 10)
  -start_url string
        starting point
  -timeout int
        timeout in seconds (default 5)
  -workers int
        number of concurrent workers (default 1)

Example:

$ dep ensure
$ go run cmd/crawler/main.go -start_url https://example.com -workers 5

Testing

$ go test -race ./...

TODO

  • Switch to vgo
  • More extensive testing

About

A simple web crawler to explore concurrency in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages