aboutsummaryrefslogtreecommitdiffstats
path: root/scrape.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-13 18:36:11 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-13 18:36:11 -0700
commitfed975d2b2f8c1763f268c7e668c1d4b0cfabd92 (patch)
treecc9b1a9758d64704f228bdcd291d0f29053eb2ec /scrape.py
parent18a76b5bd09df3b1f34208bed4663939ca8f3f18 (diff)
feat: merged news feed
Diffstat (limited to 'scrape.py')
-rw-r--r--scrape.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/scrape.py b/scrape.py
deleted file mode 100644
index 8d1f467..0000000
--- a/scrape.py
+++ /dev/null
@@ -1,26 +0,0 @@
-"""
-Generates news JSON files
-"""
-import news_feed as feed
-import constants
-import json
-import os
-
-
-OUTPUT_DIR = "news"
-
-if __name__ == "__main__":
- if not os.path.exists(OUTPUT_DIR):
- os.makedirs(OUTPUT_DIR)
-
- iidx_news_data = feed.get_news(constants.IIDX_PINKY_CRUSH_NEWS_SITE)
- with open(OUTPUT_DIR+'/iidx_news.json', 'w') as json_file:
- json.dump(iidx_news_data, json_file)
-
- sdvx_news_data = feed.get_news(constants.SOUND_VOLTEX_EXCEED_GEAR_NEWS_SITE)
- with open(OUTPUT_DIR+'/sdvx_news.json', 'w') as json_file:
- json.dump(sdvx_news_data, json_file)
-
- chunithm_jp_news_data = feed.get_news(constants.CHUNITHM_NEWS_SITE, constants.CHUNITHM_VERSION.VERSE)
- with open(OUTPUT_DIR+'/chunithm_jp_news.json', 'w') as json_file:
- json.dump(chunithm_jp_news_data, json_file)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage