This package is intended to find about new releases of heavy metal albums, and add relevant releases to a calendar in Google Calendar as events.
The program is launched via the launcher.py file. Relevant modules are:
Generates a list of interesting bands. This is done by parsing a folder (i.e the iTunes Music Folder) and storing each folder, which represents a group, as a line in a file.
Parses a Wikipedia page which contains the new releases for metal bands in a given year. Relevant albums, which are the ones from groups obtained in the previous step, are stored, as well as the release date and band name.
Connects to Google Calendar and creates (or updates) a new event for each result of the Scrapper.
-
An existing Calendar has to be used. Its Id has to be specified in the config file.
-
For security reasons, neither the username or the password for the Google account are stored, and have to be provided on each run. For this reason, the program it is not suitable for a cronjob. If there is a better solution for this, I'd love to hear about it.