Giter Club home page Giter Club logo

bandeventnotifier's Introduction

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.

bandeventnotifier's People

Contributors

weezel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bandeventnotifier's Issues

Indicate broken plugins better

Currently an empty string should be returned when plugin cannot parse the venue page. Propagate this correctly to threads so that the user can see which plugin is bogus.

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.