aboutsummaryrefslogtreecommitdiffstats
path: root/news_feed.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-14 01:56:18 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-14 01:56:18 -0700
commitdc279404b1f6e371d6d7acd1380a265762e60218 (patch)
tree85444616b0c98697bf060bb932557ae323a0c9ed /news_feed.py
parent147c36d207ca74e876b6b4703fd3f57f3ab57e56 (diff)
add maimai DX JPN scraping
Diffstat (limited to 'news_feed.py')
-rw-r--r--news_feed.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/news_feed.py b/news_feed.py
index 8bd1179..01ee3d1 100644
--- a/news_feed.py
+++ b/news_feed.py
@@ -21,6 +21,7 @@ from site_scraper import SiteScraper
import bemani.sdvx as sound_voltex
import bemani.iidx as iidx
import sega.chuni_jp as chunithm_jp
+import sega.maimaidx_jp as maimaidx_jp
import constants
def get_news(news_url: str, version=None) -> list:
@@ -33,8 +34,9 @@ def get_news(news_url: str, version=None) -> list:
elif news_url == constants.CHUNITHM_JP_NEWS_SITE:
if version == constants.CHUNITHM_VERSION.VERSE:
news_posts = sorted(chunithm_jp.parse_chuni_jp_verse_news_site(site_data), key=lambda x: x['timestamp'], reverse=True)
- elif news_url == constants.MAIMAIDX_NEWS_SITE:
- pass
+ elif news_url == constants.MAIMAIDX_JP_NEWS_SITE:
+ if version == constants.MAIMAIDX_VERSION.PRISM_PLUS:
+ news_posts = sorted(maimaidx_jp.parse_maimaidx_jp_prism_plus_news_site(site_data), key=lambda x: x['timestamp'], reverse=True)
else:
news_posts = []
scraper.close()
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage