jiandanmeizi

command
v0.0.0-...-43f4138 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

README

妹纸图下载

下载exe:http://pan.baidu.com/s/1gfgi9YN

网址类似于http://jandan.net/ooxx/page-3

首先进行配置

var (
	types = map[int]string{
		1: "ooxx", // 妹子图
		2: "pic",  // 无聊图
	}

	// 要抓哪一种
	Which = 1

	url     = "http://jandan.net/" + types[Which]
	urlpage = "http://jandan.net/" + types[Which] + "/page-%d"

	// 保存在统一文件
	saveroot = false
	// 根据页数保存在很多文件夹下
	savehash = true

	// 保存的地方
	rootdir = "D:\\jiandan\\jiandansum\\" + types[Which]
	// 根据页数分图片保存,不然图片太大了,我简称它hash(之前版本不是用page分而是hash)!
	// 图片太大硬盘会爆!
	hashdir = "D:\\jiandan\\jiandanpage\\" + types[Which]
)

Which = 1,1表示抓妹纸图,2表示无聊图

saverootsavehash如果设置为真,那么会保存在相应的文件中

如上面所设置,文件不会保存在D:\\jiandan\\jiandansum\\ooxx,而是分散保存在D:\\jiandan\\jiandanpage\\ooxx文件夹下,按页数分。

运行go run main.go

meizi.png

已经封装成exe!请点击ooxx.exe抓取妹纸,wuliao.exe抓取无聊图,图片只能保存在D:\jiandan

Documentation

Overview

Copyright 2017 by GoSpider author. 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

说明:保存图片而已,会自动去重!!!

Jump to

Keyboard shortcuts

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