Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

dark-nova/PSO2NA_UQ_Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSO2NA UQ Parser


This repo will be archived.

As of 2020-09-15, the new schedules are posted on Google Calendar, and the means to parse calendars in Google Calendar are not worth the effort to fix. Because of this change, this repo is no longer useful. For more information, see issue #3 (pinned). For historic reasons, the old README will continue below.


Overview

This project scrapes from the Urgent Quests main page to parse schedules into a database for easier reading. It works by going through the UQ main page and going through each schedule. If a schedule is not found in the database, meaning no entries in the database have the schedule's URL, the schedule is subsequently scraped for Urgent Quests.

Additionally, webhook and RSS functionality are included. They should be run separately from the main file and only after running the main script.

Note that RSS functionality may be sunset and deprecated in the future.

Usage

Install dependencies, and run main.py. Ideally, the script should be run once a day at midnight server time (i.e. America/Los_Angeles). Do not create a main.yaml! If you are running the project for the first time, let the project handle it.

Once you have at least the main script once, you can run webhook.py or rss.py. Like the main script, ideally these should run on a schedule, preferably every half hour (:00 and :30).

This code is designed around the following:

  • Python 3.7+
    • pendulum
    • pyyaml
    • requests

Disclaimer

This project is not affiliated with or endorsed by PSO2, SEGA, or Microsoft. See LICENSE for more detail.

Releases

No releases published

Packages

No packages published

Languages