Giter Club home page Giter Club logo

gootworms's Introduction

Gootworms

Status GitHub Issues GitHub Pull Requests License


Few lines describing your project.

๐Ÿ“ Table of Contents

๐Ÿง About

่ฟ™ๆ˜ฏไธ€ไธช็”จgolang็ผ–ๅ†™็š„ไธปไปŽๅˆ†ๅธƒๅผ็ˆฌ่™ซ

๐Ÿ Getting Started

Project Tree

Gootworms
โ”œโ”€ conf
โ”‚  โ””โ”€ config.yml //็ˆฌ่™ซ่ง„ๅˆ™ๅŠๆ•ฐๆฎๅบ“็š„้…็ฝฎๆ–‡ไปถ
โ”œโ”€ Dockerfile   
โ”œโ”€ go.mod
โ”œโ”€ go.sum
โ”œโ”€ LICENSE
โ”œโ”€ main
โ”œโ”€ main.go
โ”œโ”€ README.md
โ”œโ”€ src
โ”‚  โ”œโ”€ Data
โ”‚  โ”‚  โ”œโ”€ Enum  //ๅญ˜ๆ”พๅธธ้‡ไฟกๆฏ
โ”‚  โ”‚  โ”‚  โ””โ”€ NodeConstants
โ”‚  โ”‚  โ”‚     โ””โ”€ NodeConstants.go 
โ”‚  โ”‚  โ”œโ”€ Job.go
โ”‚  โ”‚  โ””โ”€ Result.go
โ”‚  โ”œโ”€ Master
โ”‚  โ”‚  โ”œโ”€ Master.go
โ”‚  โ”‚  โ””โ”€ Master_test.go
โ”‚  โ”œโ”€ Slave
โ”‚  โ”‚  โ”œโ”€ Downloader
โ”‚  โ”‚  โ”‚  โ”œโ”€ Downloader.go
โ”‚  โ”‚  โ”‚  โ””โ”€ Downloader_test.go
โ”‚  โ”‚  โ”œโ”€ Node
โ”‚  โ”‚  โ”‚  โ””โ”€ NodeManager.go
โ”‚  โ”‚  โ””โ”€ Spider
โ”‚  โ”‚     โ”œโ”€ Spider.go
โ”‚  โ”‚     โ””โ”€ Spider_test.go
โ”‚  โ””โ”€ Utils  //ๅทฅๅ…ท็ฑป
โ”‚     โ”œโ”€ ChromeDriverUtil
โ”‚     โ”‚  โ”œโ”€ ChromeDriverUtil.go
โ”‚     โ”‚  โ””โ”€ ChromeDriverUtil_test.go
โ”‚     โ”œโ”€ ConfigUtil
โ”‚     โ”‚  โ”œโ”€ ConfigUtil.go
โ”‚     โ”‚  โ””โ”€ ConfigUtil_test.go
โ”‚     โ”œโ”€ CronUtil
โ”‚     โ”‚  โ”œโ”€ CronUtil.go
โ”‚     โ”‚  โ””โ”€ CronUtilTest.go
โ”‚     โ”œโ”€ DBUtils
โ”‚     โ”‚  โ”œโ”€ MongoUtil
โ”‚     โ”‚  โ”‚  โ”œโ”€ config.yml
โ”‚     โ”‚  โ”‚  โ”œโ”€ MongoUtil.go
โ”‚     โ”‚  โ”‚  โ””โ”€ MongoUtil_test.go
โ”‚     โ”‚  โ””โ”€ RedisUtil
โ”‚     โ”‚     โ”œโ”€ RedisUtil.go
โ”‚     โ”‚     โ””โ”€ RedisUtil_test.go
โ”‚     โ”œโ”€ HttpUtil  //Http่งฃๆž
โ”‚     โ”‚  โ””โ”€ DoRequest
โ”‚     โ”‚     โ”œโ”€ DoRequest.go
โ”‚     โ”‚     โ””โ”€ DoRequest_test.go
โ”‚     โ”œโ”€ LinksUtil  //ๆๅ–ๆ–‡ๆœฌไธญ็š„้“พๆŽฅ
โ”‚     โ”‚  โ”œโ”€ config.yml
โ”‚     โ”‚  โ”œโ”€ LinksUtil.go
โ”‚     โ”‚  โ””โ”€ LinksUtil_test.go
โ”‚     โ””โ”€ TaskUtil
โ”‚        โ”œโ”€ TaskUtil.go
โ”‚        โ””โ”€ TaskUtil_test.go
โ””โ”€ TODO.md

Prerequisites

ๅฏๅŠจๅˆ†ไธบไปŽ่Š‚็‚น(worker)ๅ’Œไธป่Š‚็‚น(master)ไธค็งๆจกๅผใ€‚ๅผ€ๅฏredis-serverๅ’ŒmongodbๆœๅŠก๏ผŒไธ”ๅ…ˆๅฏๅŠจไธป่Š‚็‚น(้œ€ๅฎ‰่ฃ…ๅนถๅฏๅŠจredisๅ’Œmongodb)๏ผŒๅ†ๅฏๅŠจไปŽ่Š‚็‚น

ไธป่Š‚็‚นๅฏๅŠจ

go run main master

ไปŽ่Š‚็‚นๅฏๅŠจ

go run main worker

โ›๏ธ Built Using

  • MongoDB-4.4.1 -ๅญ˜ๅ‚จๆ•ฐๆฎๅบ“
  • Redis-6.2.1 - ่Š‚็‚นRPC้€šไฟกไพ่ต–
  • golang-1.5 - ๅผ€ๅ‘่ฏญ่จ€

โœ๏ธ Authors

๐ŸŽ‰ Acknowledgements

  • Hat tip to anyone whose code was used
  • Inspiration
  • References

gootworms's People

Contributors

rockyhoo1209 avatar

Stargazers

luhuan avatar  avatar  avatar  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.