Giter Club home page Giter Club logo

baza's Introduction

Baza

Baza is a scraper for data from Museumplan.nl that publishes to Google Calendar. The code was written as a (pro bono) late night hacking project to help the staff at Museum Beelden aan Zee make their internal schedule available through Google Calendar. This means that the application itself is only relevant to Museum Beelden aan Zee (and possibily other Museumplan.nl users), but the source code is available to other developers who are working on Google Calendar integration or Enlive scraping in Clojure. As a late night hacking project this application wasn't written with elegant example code in mind. The unit tests in particular are a bit lacking (only the functional part of the code is covered), because I felt the use case didn't warrant writing extensive mocks of Google Data API or scraping results from Enlive. That being said, I hope the code will be useful to someone working on a similar project.

Installation

As a user, you only need to download the file baza.jar (which includes all required libraries) and store it somewhere on your filesystem (e.g. ~/bin in your homedirectory on UNIX or C:\ on Windows). Clojure uses the Java Virtual Machine as a host platform, so a copy of the JVM is required to run the application.

Usage instructions

There is no graphical interface because the application is intended to be usable in a server environment. The best way to run it is through a UNIX cronjob or alternatively a "Scheduled Task" on Windows (I don't have access to a Windows machine for testing, but it seems like there is a good description of the process on the relevant Microsoft Support page).

Here is the command to execute the application:

java -jar /path/to/baza.jar --google-username "[email protected]" --google-password "your.password" --calendar-uri "https://www.google.com/calendar/feeds/[email protected]/private/full" --mp-username "username" --mp-password "password" --mp-uri "http://www.museumplan.nl/mbaz/partners/index.php"

Nota bene: the line breaks were added for readability and should be removed; the command itself is one big line! The options are separated by spaces. When copy and pasting, make sure these spaces are preserved (otherwise the application will return an "Unknown option" error).

To use the application you should edit the command and add your own login for Museumplan.nl and Google Calendar. The "/path/to/baza.jar" value should be changed to reflect the location of the file on your filesystem (e.g. ~/bin/baza.jar on UNIX or C:\baza.jar on Microsoft Windows).

Feel free to contact me if you have any questions.

Copyright 2011, F.M. (Filip) de Waard ([email protected]). Distributed under the Apache License, version 2.0.

baza's People

Contributors

fmw avatar

Stargazers

 avatar

Watchers

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