Giter VIP home page Giter VIP logo

luzac-pdf-to-calendar's Introduction

Luzac PDF to Google Calendar

Convert PDF to Google Calendar.

Terminal Example

Install & Usage

Requirements

  • Unix system (tested on OSX/MacOS)
  • Python 2.7 (3 not supported)
git clone https://github.com/lesander/luzac-pdf-to-calendar.git
cd luzac-pdf-to-calendar/
pip install --upgrade pdfminer
pip install --upgrade google-api-python-client

Create a new project at console.developers.google.com. Select web server (node.js) as platform, set http://localhost:8080 as allowed Javascript origin, and add http://localhost:8080/ (note the / at the end!) to the authorized redirect URI's.

When finished, download the client_secret.json and place it in the luzac-pdf-to-calendar folder.

For the first time, run python googleoauth.py and give consent to your application.

Download the latest Luzac Rooster PDF to the luzac-pdf-to-calendar folder. Note the page number your schedule is on and run:

python ./main.py <my-page> <my-pdf>

Replace <my-page> with for example 20 and <my-pdf> with for example luzac-rooster.pdf.

When your grant token has expired, just re-run googleoauth.py to obtain a new token.

Contributing

If you'd like to contribute to this project or file a bug or feature request, please head over to the issue tracker or fork this repository.

License

This software is open-sourced under the MIT Licence (see LICENSE for the full license). So within some limits, you can do with the code whatever you want. However, if you like and/or want to re-use it, I'd really appreciate a reference to this project page.

The software is provided as is. It might work as expected - or not. Just don't blame me.

References & Sources

GitHub - PDFMiner by Yusuke Shinyama

Google Developers - Calendar API Home

Google Developers - Python Reference

Google Developers - Calendar API for Python Docs

Google Developers - Console

luzac-pdf-to-calendar's People

Contributors

lesander avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

luzac-pdf-to-calendar's Issues

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.