GithubHelp home page GithubHelp logo

chasbob / bhamcal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jedevc/bhamcal

0.0 1.0 0.0 79 KB

A timetable extractor for University of Birmingham! :calendar: :tada:

License: GNU General Public License v3.0

Python 100.00%

bhamcal's Introduction

Birmingham Uni timetable extractor

The University of Birmingham has a lovely service for accessing timetables that is completely incompatible with any reasonable system. This is a simple command line tool to extract the data from my.bham and generate something compatible with a reasonable system.

This project is inspired (and takes a bit of code from) Tom Moses's work on OnlineBhamTimetableConverter. It's a great project, however, I'm generally unhappy about having to give my password off to third-party services, and I just need a simple command line tool.

Installation

bhamcal requires at least python 3.7, as it uses some slightly more modern features.

Additionally, chromedriver is required for selenium to scrape the calendar data. To install it, see here (for windows-specific instructions, see below).

Finally, to actually install bhamcal, clone the repository, and install it using pip:

$ git clone https://github.com/jedevc/bhamcal.git
$ cd bhamcal
$ pip3 install -e .

If you don't want to install it system-wide, you can run it as a module, after installing the dependencies:

$ pip install -r requirements.txt
$ python3 -m bhamcal

Windows

  • Download chromedriver.exe from here.
  • Put it inside C:\Windows.

Usage

To generate a calendar in iCal format:

$ bhamcal <username> -o calendar.ics

For other options, see the help:

$ bhamcal --help

Development

To develop, first set up the pipenv:

$ pipenv shell

Then, you can run the tool using:

$ python -m bhamcal

If you add new dependencies, make sure that they are reflected in both requirements.txt and setup.py.

License

Like OnlineBhamTimetableConverter, this project is licensed under the GPLv3. Enjoy! ๐ŸŽ‰

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.