Giter Site home page Giter Site logo

crawlpoems's Introduction

CrawlPoems

基于python3 selenium的古诗词爬虫,支持进度管理,自动重试,断点续爬,结果校验,结果合并。

安装

pip install -r requirements.txt

用法

  1. python generate_task.py # 生成一个excel文件,保存每个分类标签的诗词总数,已爬诗词数和未爬诗词数,方便进度管理和断点续爬
  2. python crawl.py # 按分类标签爬取诗词,将每篇诗词单独保存成一个md文件
  3. python update_task.py # 当爬虫因为意外中途崩溃时,更新excel文件中的已爬诗词数和未爬诗词数
  4. python validate_output.py # 检验已爬诗词的内容是否符合要求
  5. python merge_output.py # 将所有诗词文件合并为一个文件

crawlpoems's People

Contributors

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