Code Monkey home page Code Monkey logo

christianfds / monster-hunter-now-events Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seriouslysean/monster-hunter-now-events

0.0 0.0 0.0 328 KB

A tool that auto-generates calendar events for Monster Hunter Now by scraping web news articles, processing them with AI, and creating a convenient calendar subscription.

Home Page: https://github.com/seriouslysean/monster-hunter-now-events

License: MIT License

Shell 0.21% JavaScript 3.64% TypeScript 95.05% HTML 1.11%

monster-hunter-now-events's Introduction

Monster Hunter Now Logo

Monster Hunter Now Events

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.

Subscribe to Calendar

Add the ICS file to your calendar app.

https://seriouslysean.github.io/monster-hunter-now-events/dist/events.ics

Run Locally

Open AI Key

  1. Sign up for an OpenAI API key, https://platform.openai.com/account/api-keys
  2. Add tokens if needed, https://platform.openai.com/account/billing/overview

Generate ICS File

Run npm start

This will do three things:

  1. npm run fetch:all-articles
  • Look for new articles
  • Download article HTML
  • Parse events from the article content
  • Save article JSON
  1. 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
  1. npm run generate:events-ics
  • Generate the dist/events.ics file

Tools

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}.

References

monster-hunter-now-events's People

Contributors

chris--jones avatar christianfds avatar seriouslysean avatar xnatsuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.