Giter Club home page Giter Club logo

bangumispider's Introduction

Bangumi Spider

该项目由是对网站Bangumi 番组计划 网站的爬虫

avatar

需求

  1. Python3.6
  2. Scrapy
  3. MongoDB

爬取器(Spider)

爬取动画,音乐等信息时会下载其封面

  1. bangumi_anime_id 爬取需要的Animate(动画)的ID
  2. bangumi_music_id 爬取需要的Music(音乐)的ID
  3. bangumi_book_id 爬取需要的Book(书籍)的ID
  4. bangumi_person_id 爬取需要的Person(三次元人物)的ID
  5. bangumi_character_id 爬取需要的Character(二次元人物)的ID
  6. bangumi_game_id 爬取需要的Game(游戏)的ID
  7. bangumi_animate 爬取需要的Animate(动画)
  8. bangumi_music 爬取需要的Music(音乐)
  9. bangumi_book 爬取需要的Book(书籍)
  10. bangumi_person 爬取需要的Person(三次元人物)
  11. bangumi_character 爬取需要的Character(二次元人物)
  12. bangumi_game 爬取需要的Game(游戏)

Docker

添加了docker支持,具体请查看配置文件。在请手动容器(spider)中执行相应的命令即可。

/data目录储存MongoDB数据,/download储存下载的图片

注意事项

  1. 请在init中配置MongoDB相关的连接数据
  2. 请在setting中配置图片下载路径
  3. 请先爬取ID才能爬取具体内容,例如先爬取动画ID才能爬取具体内容

数据API

已实现简单的爬虫数据API,详见Bangumi-Spider-API

TODO

  1. 网页端控制爬虫。

License(MIT)

MIT License

Copyright (c) 2019 AllenTom aka TakayamaAren

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

bangumispider's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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