1 Star 8 Fork 3

双反光 / Thief-Book-VSCode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

开始使用

  1. 选择书籍,进行内容爬取

step1

  1. 第二步,选择具体章节,进行阅读或者摸鱼阅读😀

正常阅读(查看源文件)

step2

摸鱼阅读😀

step2-fish

快捷键

Windows Mac 作用
alt+. cmd+. 下一页
alt+, cmd+, 上一页
alt+; cmd+; 跳转指定页
alt+m cmd+m 老板键🤫

如果发现快捷键无用,请检测按键冲突,自行进行修改

step-hotkey-override

高级功能

配置抓取组

基本上每一个网站配置一个抓取组就行了

先进行书籍目录的抓取,提取关键信息 标题title和链接link

正则配置组

  • 标题:title
  • 链接:link

在从详情页中爬取内容,只需要大致全选内容content,程序会自动提取文本内容

正则匹配组

  • 内容:content

tips: 一般内容会存在换行的情况,可以使用 [\s\S] 代替正则通配符 .

例如

\<div class="content" itemprop="acticleBody"\>(?<content>[\s\S]*?)\<\/div\>

配置具体书籍抓取

开发相关

publish

npm i -g vsce

package

vsce package --no-yarn
vsce login Chensy
code --install-extension chensy.fish-book

相关链接

MIT License Copyright (c) 2019 C.TEAM 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.

简介

vscode插件 小说 摸鱼 展开 收起
TypeScript 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/shuangfanguang/Thief-Book-VSCode.git
git@gitee.com:shuangfanguang/Thief-Book-VSCode.git
shuangfanguang
Thief-Book-VSCode
Thief-Book-VSCode
master

搜索帮助