photo-go

command module
v0.0.0-...-d0ec8ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 11 Imported by: 0

README

美女写真图爬虫 Golang 版

其他版本

goroutine

最近发现 Golang 其实也是一门很有趣的语言,goroutine 并发模式很特别,所以决定拿个爬虫来试试。觉得还是拿妹子爬虫来试可能比较好一点,毕竟兴趣是最好的老师...

goroutine pool 使用了 workerpool 第三方库,该库介绍如下。

Concurrency limiting goroutine pool. Limits the concurrency of task execution, not the number of tasks queued.

构建运行

运行项目

$ git clone https://github.com/chenjiandongx/photo-go.git
$ cd photo-go
$ go get
$ go run core.go

图片数据

图片地址数据保存在了 data.txt,共 17w+ 张照片,图片的数据是我从 mmjpgmzitu 里提取出来的。

$ wc -l data.txt
178075 data.txt

运行效果

效果图

License

MIT ©chenjiandongx

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL