aboutsummaryrefslogtreecommitdiffstats
path: root/bandai_namco
diff options
context:
space:
mode:
Diffstat (limited to 'bandai_namco')
-rw-r--r--bandai_namco/taiko.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bandai_namco/taiko.py b/bandai_namco/taiko.py
index d6c240d..a417a45 100644
--- a/bandai_namco/taiko.py
+++ b/bandai_namco/taiko.py
@@ -18,6 +18,8 @@ def parse_taiko_blog_site(html: str) -> list:
date_str = date_tag.text.strip()
date_obj = datetime.strptime(date_str, "%Y年%m月%d日")
timestamp = int(time.mktime(date_obj.timetuple()))
+ url_date = date_obj.strftime("%Y%m%d")
+ url = base_url + "/?m="+url_date
# Get headline
headline_tag = article.select_one("h1")
@@ -46,7 +48,7 @@ def parse_taiko_blog_site(html: str) -> list:
"timestamp": timestamp,
"headline": headline,
"content": "\n".join(content),
- "url": None,
+ "url": url,
"images": images,
'is_ai_summary': False
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage