Given a list of urls in urls.txt, this program fetches each page and determines whether a search term exists on the page.
git clone
this repository into$GOPATH/src/github.com/kylechadha/
cd
into the directory:cd go-search
- Install dependencies:
go get ./...
- run the
go-search
executable with flags:-search=searchTerm
- optional flag
-input
specifying the location of the urls file (the default isurls.txt
in the current working directory) - optional flag
-verbose
enables verbose logging
- The urls file must be a CSV file with urls in the second column
- The output will be in
results.txt