Giter VIP home page Giter VIP logo

imagespider's Introduction

Image spider

A image spider implemented using Golang

usage

put a config.json file in current folder

default config is as below

Install Elasticsearch docker

docker pull elasticsearch:5.6.16
docker run -d -p 9200:9200  elasticsearch:5.6.16
{
  "image": {
    "path": "d:\\t66yImage",
    "workerCount": 20,
    "isUniqFolder": true
  },
  "engine": {
    "workerCount": 2,
    "elasticUrl": "http://172.16.3.116:9200"
  },
  "init": {
    "topicPerPage": 100,
    "startPageNum": 20,
    "endPageNum": 100,
    "seeds": [
      //亚洲无码原创
      // "http://t66y.com/thread0806.php?fid=2",
      // //亚洲有码原创
      // "http://t66y.com/thread0806.php?fid=15",
      // // 欧美原创
      // "http://t66y.com/thread0806.php?fid=4",
      //动漫原创区
      // "http://t66y.com/thread0806.php?fid=5"
      // // 国产原创区
      // "http://t66y.com/thread0806.php?fid=25",
      // //中字原创
      // "http://t66y.com/thread0806.php?fid=26",
      // // 转贴交流
      // "http://t66y.com/thread0806.php?fid=27",
      // // 新时代
      "http://t66y.com/thread0806.php?fid=8"
      // //达盖尔
      // "http://t66y.com/thread0806.php?fid=16",
      // http下载
      // "http://t66y.com/thread0806.php?fid=21"
    ]
  },
  "nameLenLimit": 60,
  "net": {
    "timeOut": 30,
    "proxyUrl": "socks5://localhost:1080"
  }
}

Downloaod image and save elastic search

go get github.com/wuxiangzhou2010/imagespider
cd $GOPATH/src/github.com/wuxiangzhou2010/imagespider
go run github.com/wuxiangzhou2010/imagespider

Web search page

cd $GOPATH/src/github.com/wuxiangzhou2010/imagespider
go run github.com/wuxiangzhou2010/imagespider/frontend

arch

arch

imagespider's People

Contributors

tomilla avatar wuxiangzhou2010 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.