Code Monkey home page Code Monkey logo

gospiderebook's Introduction

goSpiderEBook

golang 电子书网站爬虫
golang 爬取电子书网站的数据库,并将数据存储在mongoDB中。 电子书网站是:http://www.woaidu.org/ 用到的技术有golang的协程池控制最大爬取协程数,如果不控制会因为资源不足而报错。
电子书的数据的数据结构

1.小说图片,存储url
2.小说名字
3.小说作者
4.小说简介
5.更新时间
6.下载地址:(多个地址)
//数据在mongoDB的结构体
type EbookData struct {
DataUrl string
ImageUrl string
Title string
Content string
Time string
Author string
Download string
}
//下载链接的结构体
type DownLoadInfo struct {
DownLoadUrl string
Downfrom string
Updatetime string
Progress string
}
golang 连接mongoDB 的驱动用的是mgo: http://godoc.org/labix.org/v2/mgo

gospiderebook's People

Contributors

china-muwenbo 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.