stargik
V2EX  ›  问与答

bangumi 网站的动画条目的标签能不能通过 js 脚本来全部展现出来

  •  
  •   stargik · Sep 23, 2022 · 1581 views
    This topic created in 1333 days ago, the information mentioned may be changed or developed.

    图片
    bangumi 网站的动画条目的标签能不能通过 js 脚本来全部展现出来
    条目的 标签词 是限制默认只能展示 5 行吗
    我想如果能都展示出来 标签词就算只有 1 个人 也都显示出来 展示到 10 行也可以 如果系统没有限制死的话
    通过 js 脚本技术可以实现吗?
    有经常上 bangumi 网站 而且 非常熟悉 js 代码 的靓仔,来回答一下吗?

    3 replies    2022-09-23 15:45:58 +08:00
    dreasky
        1
    dreasky  
       Sep 23, 2022
    人家后端只按数量排序统计出前 n 个标签的
    stargik
        2
    stargik  
    OP
       Sep 23, 2022
    @dreasky 刚去找了三四个热门条目,都数了一下标签数量,都是 30 个标签词,原来是依照数量只显示出前 30 个标签词,后续的就不显示了。
    这个后面不显示的,是后端代码上限制死的吗,有没有可能通过 js 脚本来破解这个限制死的,然后修改限制数量 30 ,改成 200 ,这样所有标签词就肯定都能显示出来了。
    chaucerling
        3
    chaucerling  
       Sep 23, 2022
    https://bangumi.github.io/api/#/%E6%9D%A1%E7%9B%AE/getSubjectById
    直接请求 api 接口,tags 最多返回 30 个,应该是后端限制了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4707 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 06:25 · PVG 14:25 · LAX 23:25 · JFK 02:25
    ♥ Do have faith in what you're doing.