Weathernews timetable
ウェザーニュースYouTubeチャンネルのコミュニティ投稿から今日のLiVEラインナップを取得し、タイムテーブル形式で表示する。From its SKILL.md
npx -y skills add yuta-ron/chore-skills --skill weathernews-timetableAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, 788 tokens by cl100k_base, as published. Nobody here has run it
ウェザーニュースYouTubeチャンネルのコミュニティ投稿(https://www.youtube.com/@weathernews/posts)から今日のLiVEラインナップを取得し、タイムテーブルとして整形して表示してください。
Step 1: データ取得
以下のBashコマンドを実行してください:
python3 << 'PYEOF'
import urllib.request, re, sys
from datetime import datetime
url = 'https://www.youtube.com/@weathernews/posts'
req = urllib.request.Request(url, headers={
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'Accept-Language': 'ja,en-US;q=0.9,en;q=0.8'
})
with urllib.request.urlopen(req) as resp:
html = resp.read().decode('utf-8', errors='replace')
texts = re.findall(r'"text":"([^"]+)"', html)
today = datetime.now()
date_str = f'{today.month}月{today.day}日'
# 今日のラインナップを探す
start = next((i for i, t in enumerate(texts) if 'ラインナップ' in t and date_str in t), -1)
# 見つからなければ直近のラインナップを使う
if start < 0:
start = next((i for i, t in enumerate(texts) if 'ラインナップ' in t), -1)
if start < 0:
print('ERROR: ラインナップが見つかりませんでした')
sys.exit(1)
seen = False
for t in texts[start:start + 80]:
if seen and 'ラインナップ' in t:
break
seen = True
out = t.replace('\\n', '\n')
if out.strip():
print(out)
PYEOF
Step 2: タイムテーブルとして表示
取得したデータをもとに、以下のフォーマットで整形して出力してください。
mm月dd日(曜日) ウェザーニュースLiVE タイムテーブル
| 時間 | 番組 | キャスター | リンク |
|---|---|---|---|
| 05:00〜 | モーニング | キャスター名 | 視聴 |
| 08:00〜 | サンシャイン | キャスター名 | 視聴 |
| 11:00〜 | コーヒータイム | キャスター名 | 視聴 |
| 14:00〜 | アフタヌーン | キャスター名 | 視聴 |
| 17:00〜 | イブニング | キャスター名 | 視聴 |
| 20:00〜 | ムーン | キャスター名 | 視聴 |
特別番組がある場合は末尾に追記してください。
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.