知道创宇爬虫设计第七天: doctest
doctest是 Python 内建的模块,用于文档测试,正好可以拿来用于爬虫的自测功能
这个模块相对简单,直接贴代码
代码
|
另外其它部分也有少量修改,放在 https://github.com/answerrrrrrrrr/KnownsecSpider
And it's turtles all the way down...
doctest是 Python 内建的模块,用于文档测试,正好可以拿来用于爬虫的自测功能
这个模块相对简单,直接贴代码
|
另外其它部分也有少量修改,放在 https://github.com/answerrrrrrrrr/KnownsecSpider
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true