Comments (5)
douban官网把tag关闭了,页面上都没有,没法获取tag,douban-api-rs应该也不会有吧
from calibre-douban.
感谢作者的工作。
我是用talebook/talebook来管理,他调用了douban-api-rs来更新书籍,可以更新标签,我就以为是能获取tag。后来测试了dou ban-api-rs的确无法获取tag。
最后查看talebook的源码发现,是通过匹配固定标签和简介里面的内容来实现的,虽然不会很准确,但不失为一种方法。
if len(refer_mi.tags) == 0 and len(mi.tags) == 0: ts = [] for nn, tags in constants.BOOKNAV: for tag in tags: if tag in refer_mi.title or tag in refer_mi.comments: ts.append(tag) elif tag in refer_mi.authors: ts.append(tag) if len(ts) > 0: mi.tags += ts[:8] logging.info("tags are %s" % ','.join(mi.tags)) self.db.set_tags(book_id, mi.tags) mi.smart_update(refer_mi, replace_metadata=True)
from calibre-douban.
用描述或者标题关键字判断tag,很容易误判,有空试试看
from calibre-douban.
昨天提了pr了,你可以看看
from calibre-douban.
源文件中的criteria作为标签似乎更合适:
criteria = '7:计算机|7:计算机科学|7:计算机系统|7:计算机体系结构|7:操作系统|7:CSAPP|7:计算机底层|7:编程|7:CS|7:经典|3:/subject/26912767/',
from calibre-douban.
Related Issues (15)
- ids一栏会出现new douban的编号 HOT 4
- 搜索词存在全角括号或者冒号时搜索不到内容 HOT 2
- 无法使用了,错位代码403 HOT 2
- 远程端关闭连接,无响应错误 HOT 2
- 最新版本的插件,安装到calibre后,只能获取文字元数据,拉取不到封面 HOT 1
- 豆瓣403了 HOT 3
- 书名+作者+年份正确,但基本上匹配不到正确信息 HOT 11
- AttributeError: 'NoneType' object has no attribute 'xpath' HOT 4
- 建议将豆瓣评分输出为自定义的新列 HOT 3
- ids一栏会出现new douban的编号 HOT 1
- 豆瓣把tag关了,页面里找了个内容不知道能不能替代 HOT 4
- 元数据乱下书 HOT 2
- 右键下载元数据如何下载多项,并选择某项后进行编辑确认? HOT 1
- 异常IP无法下载元数据怎么办 HOT 3
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 calibre-douban.