Skip to content

bdensisa/ade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BdeEnsisaAde

License Issues Pull Requests Code Size CodeFactor Open Source Helpers

Scrapper d'ADE pour afficher les emplois du temps dans l'application du BDE.

Installation

pip install -r requirements.txt

Variables d'environnement

Name Description
DB_HOST MySQL database host
DB_NAME MySQL database name
DB_USER MySQL user name
DB_PASSWORD MySQL user password

Structure de la base de données

CREATE TABLE `Users` (
  `id` varchar(32) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `option` varchar(255) NOT NULL,
  `year` varchar(255) NOT NULL,
  `expiration` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
);

CREATE TABLE `UserCourses` (
  `ade_uid` varchar(255) NOT NULL,
  `user_id` varchar(32) NOT NULL,
  `title` text NOT NULL,
  `start` varchar(255) NOT NULL,
  `end` varchar(255) NOT NULL,
  `location` text NOT NULL,
  `description` text NOT NULL,
  PRIMARY KEY (`ade_uid`,`user_id`)
);

Configuration

Pour accéder aux emplois du temps, il faut renseigner les identifiants de connexion à ADE dans le fichier credentials.json:

{
    "username": "prenom.nom@uha.fr",
    "password": "MySuperPassword"
}

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages