Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
turbou committed Nov 28, 2023
1 parent 5d980e6 commit 9a454a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion work/contrast_rlsnote.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import locale
import re
import html
import hashlib

def main():
url = 'https://docs.contrastsecurity.jp/ja/release.html'
Expand Down Expand Up @@ -50,8 +51,10 @@ def main():
#print(id_str, elem.get('data-legacy-id'))
#if not title.lower().startswith('java'):
# continue
id_hash = hashlib.md5(id_str.encode()).hexdigest()
url = 'https://docs.contrastsecurity.jp/ja/release.html#%s' % id_str
feed.add_item(title=title, link=url, description=html.escape(''.join(['<p>{0}</p>'.format(s) for s in desc_buffer])), pubdate=pubdate)
guid = 'https://docs.contrastsecurity.jp/ja/release.html#%s' % id_hash
feed.add_item(title=title, link=url, description=''.join(['<p>{0}</p>'.format(s) for s in desc_buffer]), pubdate=pubdate, unique_id=guid)
except IndexError:
continue
str_val = feed.writeString('utf-8')
Expand Down

0 comments on commit 9a454a1

Please sign in to comment.