Skip to content

Band Event Notifier - Notify (interesting) incoming music events

License

Notifications You must be signed in to change notification settings

weezel/BandEventNotifier

Repository files navigation

BandEventNotifier

Notify incoming gigs regarding the listened artists on Last.FM.

Motivation

I am a frequent visitor of live music performances. At times I miss gigs I'd like to see. Instead of using time to crawl through the venue pages as a weekly routine and manually parsing all the interesting artist events, it's time to automate this task.

Last.fm would have been excellent for this but it relies on users creating the events. Same applies for Facebook and other sites. Instead of parsing all the interesting artist sites, I though it would be best to parse venue programmes only. Works for me (TM).

Screenshot

BandEventNotifier

Dependencies

  • Python 3.x
  • python-dev

Setup

Install dependencies under .venv directory by running:

make install

Create USERNAME file under the repository and put our LastFM username in there:

echo my-lastfm-username > USERNAME

Now, fetch some data and enjoy!

$ ./bandeventnotifier.py fetch

or to get usage information, just run ./bandeventnotifier.py.

Broken plugin

Venues site layouts changes every now and then. That means a broken plugin. One should sacrifice a few minutes to fix the issue but if you are in a hurry, do the following: - Check the plugin's file name - Add broken plugin's file name into plugin_handler.py file - Variable is called blacklisted - i.e. blacklisted = ["plugin_venuename"] - Run the fetch again

Sometimes the domain dies and the plugin handler will go bonkers. In that case, remove all the *.pickle files from venues/ directory and blacklist (and delete) the plugin.

If you are not capable to fix the plugin by yourself, please contact the author of the plugin or me.

LICENSE

Software is BSD Licensed, please see LICENSE for more info.

TODO

  • Change row_factor to sqlite3.Row

  • Improve (dev) documentation

  • Threaded fetcher for LastFM

  • Port to Python3

  • Better error handling for plugins

  • Fetch listening information from last.fm

  • Dynamic plugin loader for evenues

  • Design database

  • Implement threaded fetcher. Initializes plugins (venues) and stores fetched events into a database.

About

Band Event Notifier - Notify (interesting) incoming music events

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published