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