Coder Social home page Coder Social logo

akshit1811 / webalyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdn/webalyzer

1.0 2.0 0.0 646 KB

Collects web code for analysis and reporting.

Home Page: https://webalyzer.herokuapp.com

License: BSD 3-Clause "New" or "Revised" License

Python 61.77% Shell 0.21% JavaScript 15.13% HTML 13.14% CSS 9.75%

webalyzer's Introduction

Webalyzer - Collects web code for analysis and reporting

Webalyzer helps you collect HTML from live web pages and run analysis on the the HTML in batches for reporting purposes.

Requirements

  • PostgreSQL
  • Redis
  • Python & pip
  • node & npm

Setup

  1. Start your PostgreSQL and Redis servers

  2. Create and activate a virtual environment:

     virtualenv venv
     source venv/bin/activate
    
  3. 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
  1. Install node requirements:

     npm install -g crass yuglify
    
  2. Create postgres database:

     createdb webalyzer
    
  3. Add default environment variable settings in .env file:

     SECRET_KEY=terrible-secret
     DEBUG=True
     ALLOWED_HOSTS=*
     DATABASE_URL=postgresql://<username>@localhost:5432/webalyzer
    
  4. Run migrations:

     python manage.py migrate
    

Run

Run the django server:

    python manage.py runserver

Run the Alligator worker:

    python manage.py run-gator

Use locally

  1. Add a <script> tag to your page for collect.js:

     <script src="http://127.0.0.1:8000/static/collect.js"
     data-webalyzer="example.com"></script>
    
  2. Hit your page(s)

  3. Go to the collected analysis page: http://127.0.0.1:8000/analyzer/

  4. Enter your data-webalyzer attribute value (e.g., example.com) and click "Start Analysis"

webalyzer's People

Contributors

peterbe avatar groovecoder avatar

Stargazers

drallop1 avatar

Watchers

James Cloos avatar Akshit Bhatia avatar

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.