Coder Social home page Coder Social logo

web-profiler's Introduction

Web Profiler

Tools for gathering statistics about contents and performance of Web sites. There are two parts:

  1. Python "loader" classes that load Web pages (using various backends, like PhantomJS, Chrome, and Firefox) and produce summary statistics, HAR files, and/or screenshots.

  2. Scripts that use these loaders to gather particular statistics (e.g., compare the load times of the HTTP and HTTPS versions of a site).

Loaders

The loaders are Python classes that encapsulate the logic for loading Web pages and saving statistics. Each one implements a common interface (specified by the Loader superclass in loader.py) and currently supports the following backends:

  • PhantomJS (PhantomJSLoader in phantomjs_loader.py)
  • Chrome (ChromeLoader in chrome_loader.py)
  • Firefox (FirefoxLoader in firefox_loader.py)
  • Python Requests (PythonRequestsLoader in pythonrequests_loader.py)
  • Curl (CurlLoader in curl_loader.py)
  • NodeJS (NodeJsLoader in nodejs_loader.py)

API documentation available here.

Dependencies:

  • PhantomJS

    Needed by the PhantomJSLoader.

    If the loader can't find PhantomJS, try harding-coding the path to PhantomJS at the top of phantomjs_loader.py.

  • Xvfb

    Needed to run Firefox or Chrome in headless mode.

  • chrome-har-capturer

    Needed by the ChromeLoader.

    Set path to binary at top of chrome_loader.py. To install globally:

      sudo npm install -g chrome-har-capturer
    

    To record HTTP versions, you currently need to use this fork. To install globally:

      git clone [email protected]:dtnaylor/chrome-har-capturer.git
      cd chrome-har-capturer
      sudo npm install -g .
    
  • node.js

    Needed by the ChromeLoader. (On Ubuntu, be sure to install nodejs package and not node.)

  • Python Requests

    Used to test the availability of sites of HTTP or HTTPS and by the PythonRequestsLoader.

  • node-http2

    Needed by the NodeJsLoader and ZombieJsLoader. Location of the module must be hardcoded in webloader/nodejs_loader.py and webloader/zombiejs_loader.py. z

web-profiler's People

Contributors

dtnaylor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fijiwebdesign

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.