Skip to content

Installation Instructions

Mike Gifford edited this page Aug 25, 2020 · 10 revisions

Install on a Mac

Install Python 3.6 & virtual environment

https://www.python.org/downloads/mac-osx/

Run Python 3 virtual environment venv

$ python3 -m venv venv

Start virtual environment

$ source venv/bin/activate

Install core requirements

Install requirements with pip

$ pip install -r requirements.txt

Start browser application

$ python3 app.py

Verify it works & then shut it down.

Enable Chrome

Check which version of Chrome you are using and download the appropriate Chromedriver in my case:

$ wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_mac64.zip

Unzip & move to /usr/local/bin and make writeable:

$ unzip chromedriver_mac64.zip

$ mv chromedriver /usr/local/bin

$ chmod +x /usr/local/bin/chromedriver

Enable Firefox (optional as just one browser is needed)

Get latest Firefox driver geckodriver in my case:

$ wget https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-macos.tar.gz

Unzip & move to /usr bin and make writeable:

$ tar -xvf geckodriver-v0.27.0-macos.tar.gz

$ mv geckodriver /usr/local/bin

$ chmod +x /usr/local/bin/geckodriver

Enable Google's Lighthouse

Install NodeJS & NPM and install Google's Lighthouse

$ npm install -g lighthouse

Enable PDF Analyzer

Download Xpdf and uncompress files

$ wget https://dl.xpdfreader.com/xpdf-tools-mac-4.02.tar.gz --no-check-certificate

$ tar -xvf xpdf-tools-mac-4.02.tar.gz

Move binaries to /usr/local/bin and manuals:

$ cd xpdf-tools-mac-4.02/bin64

$ mv * /usr/local/bin/

$ cd ../doc

$ mv *.1 /usr/share/man/man1/ ?? This didn't work on my mac.

$ mv *.5 /usr/share/man/man5/ ??

Enable Google Drive API

Follow the steps from Google's docs