Skip to content

Commit

Permalink
Merge pull request #54 from edoardottt/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
edoardottt authored May 3, 2022
2 parents cfcd63c + fe14f92 commit ca6d5bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ update:
@make linux
@echo "Done."

lint:
@golangci-lint run

linux:
@go build -o ./cariddi
@sudo mv ./cariddi /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion crawler/colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func CreateColly(delayTime int, concurrency int, cache bool, timeout int,
c := colly.NewCollector(
colly.Async(true),
)
c.IgnoreRobotsTxt = false
c.IgnoreRobotsTxt = true
c.AllowURLRevisit = false

err := c.Limit(
Expand Down
9 changes: 9 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ IF "%ARG%"=="fmt" (
GOTO Done
)

IF "%ARG%"=="lint" (
CALL :Lint
GOTO Done
)

IF "%ARG%"=="remod" (
del go.mod
del go.sum
Expand Down Expand Up @@ -52,6 +57,10 @@ go fmt ./...
echo Done.
EXIT /B 0

:Lint
golangci-lint run
EXIT /B 0

:Update
set GO111MODULE=on
echo Updating ...
Expand Down

0 comments on commit ca6d5bf

Please sign in to comment.