gpt4 book ai didi

rss - RSS guid 可以被认为是全局唯一的吗?

转载 作者:行者123 更新时间:2023-12-04 14:17:34 27 4
gpt4 key购买 nike

我需要在数据库中存储来自多个 RSS 提要的新项目。我想使用每个项目的 GUID 标记来确定它是否已经存在于数据库中。

W3C specification :

guid stands for globally unique identifier. It's a string that uniquely identifies the item. When present, an aggregator may choose to use this string to determine if an item is new.



...

There are no rules for the syntax of a guid. Aggregators must view them as a string. It's up to the source of the feed to establish the uniqueness of the string.



所以我的问题是,在不同提要中考虑唯一的 GUID 是否安全?或者我是否需要将 GUID 与其来源的提要结合起来,以确保没有重复的 GUID?

最佳答案

GUID 甚至不是强制性的,所以在我看来,认为它是独一无二的是不安全的。我建议你阅读 this blog post about rss feed duplicate detection .

关于rss - RSS guid 可以被认为是全局唯一的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30274038/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com