- clone the repository to your chosen location $ git clone https://github.com/TabTabTab/LTHCourseStatistics.git
- make sure you have python3.4 is installed $ sudo apt-get install python3.4
- make sure pip3 is installed $ sudo apt-get install python3-pip
- install flask for python3 $ sudo pip3 install flask
- install lxml for python3 $ sudo pip3 install lxml
- make sure pdftotext is installed $ sudo apt-get install poppler-utils
You need to scrape for courses before you can start the web service. $ cd services You may now edit the config file to set up your specific scraper settings. Then you can run the initiation script which will scrape for courses, this may take up to a minute. $ ./initiate.py
Execute the run program $ cd services $ ./run.py
You may run the service in debug mode, either by specifying this in the service/config.py file or by supplying the 'debug' argument to run.py $ ./run.py debug
- ImportError: No module named 'lxml' $ pip3 install --upgrade lxml