Webalyzer helps you collect HTML from live web pages and run analysis on the the HTML in batches for reporting purposes.
- PostgreSQL
- Redis
- Python & pip
- node & npm
-
Start your PostgreSQL and Redis servers
-
Create and activate a virtual environment:
virtualenv venv source venv/bin/activate
-
Install python requirements from the
requirements.txt
file:pip install -r requirements.txt
Ideally you should use peep
to
assure you don't install anything that hasn't been vetted for:
pip install peep
peep install -r requirements.txt
-
Install node requirements:
npm install -g crass yuglify
-
Create postgres database:
createdb webalyzer
-
Add default environment variable settings in
.env
file:SECRET_KEY=terrible-secret DEBUG=True ALLOWED_HOSTS=* DATABASE_URL=postgresql://<username>@localhost:5432/webalyzer
-
Run migrations:
python manage.py migrate
Run the django server:
python manage.py runserver
Run the Alligator worker:
python manage.py run-gator
-
Add a
<script>
tag to your page forcollect.js
:<script src="http://127.0.0.1:8000/static/collect.js" data-webalyzer="example.com"></script>
-
Hit your page(s)
-
Go to the collected analysis page: http://127.0.0.1:8000/analyzer/
-
Enter your
data-webalyzer
attribute value (e.g.,example.com
) and click "Start Analysis"