diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-16 18:41:54 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-16 18:41:54 -0700 |
| commit | c32042f7b40484e810456fc4d678f4f9c08f43b8 (patch) | |
| tree | b7a5096b4c91f1acc99c1d1a04b9944d293124de /news_feed.py | |
| parent | 4c6235d7290c49f48ef913bb46627083879771b1 (diff) | |
implement street fighter type arcade
Diffstat (limited to 'news_feed.py')
| -rw-r--r-- | news_feed.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/news_feed.py b/news_feed.py index fb11c6c..7c781db 100644 --- a/news_feed.py +++ b/news_feed.py @@ -31,6 +31,7 @@ import sega.maimaidx_jp as maimaidx_jp import sega.maimaidx_intl as maimaidx_intl import sega.ongeki_jp as ongeki_jp import taito.music_diver as music_diver +import taito.street_fighter as street_fighter import bandai_namco.taiko as taiko import bandai_namco.wmmt as wmmt import community.disc as disc @@ -162,6 +163,13 @@ def get_news(news_url: str, version=None) -> list: api_data = download_site_as_html(news_url) news_posts = sorted(music_diver.parse_music_diver_news_json(api_data), key=lambda x: x['timestamp'], reverse=True) + elif news_url == constants.STREET_FIGHTER_NEWS_SITE: + site_data = download_site_as_html(news_url) + news_posts = sorted(street_fighter.parse_sf_news_site(site_data), key=lambda x: x['timestamp'], reverse=True) + print(news_posts) + exit() + + elif news_url == constants.TAIKO_BLOG_SITE: site_data = download_site_as_html(news_url) news_posts = sorted(taiko.parse_taiko_blog_site(site_data), key=lambda x: x['timestamp'], reverse=True) |
