GithubHelp home page GithubHelp logo

schedule-web-scrape's Introduction

Contents

  • gui.py
    • PyQt5 interface for adding to calendar
  • gui_funcs.py
    • Functions for gui.py
  • ws.py
    • Terminal file

About

This is an idea I came up with as a personal intro to web scraping. The purpose of this program was to web scrape my schedule from the University of Kentucky's course planner and insert the data to my Google calendar using the Google Calendar API, which was a new experience for me as well. I also created a simple GUI using PyQt5.

Due to authorization issues, I couldn't get the webpage info I needed straight from the uky website. I copied and pasted the schedule HTML from MyUK into a separate file and went from there. Besides this issue, the program works.

In terms of constraints, it works for basic courses, not for recitation courses, online courses, courses with labs or extra days, and missing time info. I might work on implementing that next and optimizing the code. Also, it is assumed that this will be used when the student registers for courses for the next semester so the year for the google calendar is set for six months in advance. I suppose another constraint would be that this cannot be used for winter sessions; only fall and spring.

Use (for UK students)

  • Clone the repo/project
  • Option 1: ws.py
    • Copy/paste your schedule into a file named calendar.html and put it into the cloned repo.
    • Run with python ws.py in the terminal.
    • Check that your Google Calendar has been updated.
  • Option 2: gui.py
    • Copy/paste your schedule into a file and put it into the cloned repo. Name doesn't matter as you'll be selecting it within the GUI.
    • Run with python gui.py in the terminal. The user will be prompted to select their schedule HTML file and can choose a different calendar ID if they so chose.
    • Check that your Google Calendar has been updated.

Later functionality

  • gui.py and ws.py
    • Delete functionality

schedule-web-scrape's People

Contributors

jordangeorge avatar

Watchers

James Cloos 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.