Comments (9)
嗯,是的,这个只是java版本的,只有命令行和gui。android版本还没有上传,其实安卓就是包装了一下,直接把这些代码复制过去的
from easybook.
android版本两天写完的。。写的有点乱,不好意思传上来
from easybook.
那大概什么时候能上传完全呢?
from easybook.
https://github.com/Zzzia/Book
建了个新仓库
from easybook.
感谢楼主!爬取的小说html有什么技巧嘛?
from easybook.
@liuwen370494581 我感觉爬小说没什么难度,简单的直接用正则提取关键信息,复杂一点的布局jsoup用解析。就是有的小说网站有防爬措施,用js延迟加载,或者必须登录,就很麻烦了
from easybook.
@liuwen370494581 一般的小说html都在一个div里面,用p或者br标签分割段落,把那个div提取出来,在string.split或者再用一次正则匹配就行。提取的内容很可能有缩进符,广告啥的,需要清理掉。我的思路是在每个站点的解析里顺手清理广告,然后在封装的类里统一清理多余的缩进。
from easybook.
@liuwen370494581 前几天写了一篇博客记录一些坑和细节,但是怎么解析没有写,可以参考下
https://blog.csdn.net/qq_36168049/article/details/83867388
from easybook.
感谢楼主给的思路!
from easybook.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easybook.