Code Monkey home page Code Monkey logo

apuwebbot's Introduction

APUWebBot

Introduction

This is a simple code that will scrape the content from the Ristumeikan Asia Pacific University Academic Office homepage that I made as a hobby. I hope this project will be the strating point for other APU improvement projects. The full application that uses this function can be downloaded from Google Playstore and the App Store and the repository of that project can be hound from here

Scraped contents currently includes:

  • Academic Events from the Academic Calendar
  • Lectures from the timetable xlsx sheet

How it works

The APU WebBot project works by using the HTML Agility Pack to get the raw html document from the given homepage, convert it as an object, save it to the database (SQLite). This project currently looks for two points from the Academic Office homepage; Timetable Page, and the Academic Calendar Page. The Academic Calendar scraping is straight forward as it will just check for rows and columns of the tbody element, and assign the data to the AcademicEvent class. The Timetable scraping is done by first memorystreaming the timetable xlsx file, and parse through the content of the xlsx file by using Office Open XML Nuget package, and assigning the values to the Lecture class.

Project structure

The codes can be divided into two types; Services, and Models. Services files also contains Helper codes like DataStore.cs which accesses SQLite back-end to save/load and deleting data. SearchEngine.cs is a class that contains several simple search tools. This method get's a string search query, and list of Lecture objects (database to look through) as parameters and will return a list of matching Lecture items from the given list. The core search algorithm uses a simple foreach loop and string comparisons. APUBot.cs contains all the core fuctions of the entire APU WebBot project, such as the web scraping algorithm. The Models folder contains all the object models that are used for this project such as AcademicEvent.cs, Lecture.cs, and TimetableCell.cs.

Todo List

  • Implement Campus Terminal scraping algorithm with login forms

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.