This is a calendar subscription file for events in Monster Hunter Now.
If you aren't playing yet, feel free to join and use my referral code for free items and zenny, 89K5MKCF
.
I created this because I didn't want to add events to a shard calendar for my friends and I any longer and it's also a great way to test out how beneficial AI is in coding via dialoge with ChatGPT, and an excuse to utilize the OpenAI API.
Add the ICS file to your calendar app.
https://seriouslysean.github.io/monster-hunter-now-events/dist/events.ics
- Sign up for an OpenAI API key, https://platform.openai.com/account/api-keys
- Add tokens if needed, https://platform.openai.com/account/billing/overview
Run npm start
This will do three things:
npm run fetch:all-articles
- Look for new articles
- Download article HTML
- Parse events from the article content
- Save article JSON
npm run generate:events-json
- Loop through all
fixtures/**/events.json
files - Generate a combined
dist/events.raw.json
file - Combine similar events from the raw JSON file
- Generate a deduped
dist/events.json
file
npm run generate:events-ics
- Generate the
dist/events.ics
file
Download, Parse and Save One Article
npm run fetch:article -- -u <url>
Download, Parse and Save ALL New Articles
npm run fetch:all-articles
Article index.html
and events.json
are output to fixtures/{date}_news-{slug}
.