Skip to content

zhausong/gopa

 
 

Repository files navigation

Gopa

[狗爬], A Spider Written in Go.

Travis

Building Gopa

Mac/Linux: Run make build to build the Gopa

Windows: Check out Makefile to build the Gopa

Download

Release

Running Gopa

After building the project run ./gopa -h for a list of commandline options

  • -log option : logging level,can be set to trace,debug,info,warn,error ,default is info
  • -daemon option : run in background as daemon
  • -pprof option : start pprof service, endpoint: http://localhost:6060/debug/pprof/
  • -cpuprofile option : write cpu profile to this file
  • -memprofile option : write memory profile to this file

Stopping Gopa

It's safety to press ctrl+c stop the current running Gopa, Gopa will handle the rest,saving the checkpoint, you may restore the job later,the world is still in your hand.

If you are running Gopa as daemon, you can stop it like this:

 kill -QUIT `pgrep gopa`

UI

Visit http://127.0.0.1:8001/ui/ for more details.

License

Copyright 2016 Medcl (m^medcl.net)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

🐕[狗爬], a spider written in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 57.6%
  • CSS 20.8%
  • JavaScript 19.0%
  • HTML 2.4%
  • Other 0.2%