From 034be5da690e530239fb2fd5a75ef8866d48c2d2 Mon Sep 17 00:00:00 2001 From: turbou Date: Tue, 28 Nov 2023 11:48:57 +0900 Subject: [PATCH] update. --- work/java_rlsnote.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/work/java_rlsnote.py b/work/java_rlsnote.py index ddc7241..c660d00 100644 --- a/work/java_rlsnote.py +++ b/work/java_rlsnote.py @@ -5,6 +5,7 @@ from datetime import datetime import locale import html +import hashlib def main(): locale.setlocale(locale.LC_TIME, "C") @@ -43,8 +44,10 @@ def main(): else: desc_buffer.append('%s' % elem2.text) #print(elem2.text) + id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/java-agent-release-notes-and-archive.html#%s' % id_str - feed.add_item(title=title, link=url, description=html.escape(''.join(['

{0}

'.format(s) for s in desc_buffer])), pubdate=pubdate) + guid = 'https://docs.contrastsecurity.jp/ja/java-agent-release-notes-and-archive.html#%s' % id_hash + feed.add_item(title=title, link=url, description=''.join(['

{0}

'.format(s) for s in desc_buffer]), pubdate=pubdate, unique_id=guid) except IndexError: continue