diff --git a/work/contrast_rlsnote.py b/work/contrast_rlsnote.py index 9694946..14bafa7 100644 --- a/work/contrast_rlsnote.py +++ b/work/contrast_rlsnote.py @@ -54,6 +54,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/release.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/release.html#%s' % id_hash + if not '月' in title: + continue 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 diff --git a/work/dotnet_core_rlsnote.py b/work/dotnet_core_rlsnote.py index ad54822..71f1232 100644 --- a/work/dotnet_core_rlsnote.py +++ b/work/dotnet_core_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/-net-core-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/-net-core-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue feed.add_item(title=title, link=url, description=''.join(['{0}
'.format(html.escape(s)) for s in desc_buffer]), pubdate=pubdate, unique_id=guid) except IndexError: continue diff --git a/work/dotnet_framework_rlsnote.py b/work/dotnet_framework_rlsnote.py index 1da5cff..699ada8 100644 --- a/work/dotnet_framework_rlsnote.py +++ b/work/dotnet_framework_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/-net-framework-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/-net-framework-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue feed.add_item(title=title, link=url, description=''.join(['{0}
'.format(html.escape(s)) for s in desc_buffer]), pubdate=pubdate, unique_id=guid) except IndexError: continue diff --git a/work/go_rlsnote.py b/work/go_rlsnote.py index 70afc56..97cc995 100644 --- a/work/go_rlsnote.py +++ b/work/go_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/go-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/go-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/java_rlsnote.py b/work/java_rlsnote.py index c660d00..f083e11 100644 --- a/work/java_rlsnote.py +++ b/work/java_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/java-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/java-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/nodejs_beta_rlsnote.py b/work/nodejs_beta_rlsnote.py index 4d12a2b..1dd6df4 100644 --- a/work/nodejs_beta_rlsnote.py +++ b/work/nodejs_beta_rlsnote.py @@ -48,6 +48,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/node-js-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/node-js-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/nodejs_protect_rlsnote.py b/work/nodejs_protect_rlsnote.py index 529715e..2f0d8f4 100644 --- a/work/nodejs_protect_rlsnote.py +++ b/work/nodejs_protect_rlsnote.py @@ -48,6 +48,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/node-js-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/node-js-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/nodejs_rlsnote.py b/work/nodejs_rlsnote.py index c7596e4..7d8443a 100644 --- a/work/nodejs_rlsnote.py +++ b/work/nodejs_rlsnote.py @@ -48,6 +48,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/node-js-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/node-js-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/php_rlsnote.py b/work/php_rlsnote.py index 42c4b2a..4871d7c 100644 --- a/work/php_rlsnote.py +++ b/work/php_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/php-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/php-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/python_rlsnote.py b/work/python_rlsnote.py index 83a1baf..becccdd 100644 --- a/work/python_rlsnote.py +++ b/work/python_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/python-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/python-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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 diff --git a/work/ruby_rlsnote.py b/work/ruby_rlsnote.py index 6e3cdd1..127511d 100644 --- a/work/ruby_rlsnote.py +++ b/work/ruby_rlsnote.py @@ -47,6 +47,8 @@ def main(): id_hash = hashlib.md5(id_str.encode()).hexdigest() url = 'https://docs.contrastsecurity.jp/ja/ruby-agent-release-notes-and-archive.html#%s' % id_str guid = 'https://docs.contrastsecurity.jp/ja/ruby-agent-release-notes-and-archive.html#%s' % id_hash + if not 'リリース日' in ''.join(desc_buffer): + continue 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