Giter Club home page Giter Club logo

Comments (5)

fugary avatar fugary commented on August 10, 2024

douban官网把tag关闭了,页面上都没有,没法获取tag,douban-api-rs应该也不会有吧

from calibre-douban.

Cheukfung avatar Cheukfung commented on August 10, 2024

感谢作者的工作。
我是用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.

fugary avatar fugary commented on August 10, 2024

用描述或者标题关键字判断tag,很容易误判,有空试试看

from calibre-douban.

Cheukfung avatar Cheukfung commented on August 10, 2024

昨天提了pr了,你可以看看

from calibre-douban.

fugary avatar fugary commented on August 10, 2024

源文件中的criteria作为标签似乎更合适:
criteria = '7:计算机|7:计算机科学|7:计算机系统|7:计算机体系结构|7:操作系统|7:CSAPP|7:计算机底层|7:编程|7:CS|7:经典|3:/subject/26912767/',

from calibre-douban.

Related Issues (15)

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.