Skip to content

AllenTom/BangumiSpider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.