Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rdch106/browser-stats

Web browser usage statistics
https://github.com/rdch106/browser-stats

data-adquisition data-visualization spider

Last synced: 3 days ago
JSON representation

Web browser usage statistics

Awesome Lists containing this project

README

        

# Browser Statistics
### Web Browser usage statistics

### What is this?

The project is a proof of concept for collecting data using a spider and generation of JSON files that are easily consumable using common visualization libraries. The repository has two part:

1. The spider in [crawler folder](https://github.com/RDCH106/browser-stats/tree/master/crawler)
2. The visualization in [root project](https://github.com/RDCH106/browser-stats)

Primary data source is [W3Schools browser statistics](https://www.w3schools.com/browsers/default.asp).

## Spider
### Installation

Install dependencies for Linux with:

```
$ cd crawler
$ pip install -r requirements_lin.txt
```

Install dependencies for Windows with:

```
$ cd crawler
$ pip install -r requirements_win.txt
```

### Execution

From the root of the project go to [crawler folder](https://github.com/RDCH106/browser-stats/tree/master/crawler):

`$ cd crawler`

If you are using Linux OS excute [Launch_crawler_lin.sh](https://github.com/RDCH106/browser-stats/blob/master/crawler/Launch_crawler_lin.sh).

If you are using Windows OS execute [Launch_crawler_win.bat](https://github.com/RDCH106/browser-stats/blob/master/crawler/Launch_crawler_win.bat)

Crawled data will be saved in [browser-stats.json](https://github.com/RDCH106/browser-stats/blob/master/crawler/browser-stats.json)

## Visualization

[C3.js](https://github.com/c3js/c3) based on [D3.js](https://github.com/d3/d3) is used for data visualization.

All the displayed data comes from [browser-stats.json](https://github.com/RDCH106/browser-stats/blob/master/crawler/browser-stats.json) generated by the spider automatically.

### Available charts

- [Browser usage 2017 - Donut Chart](https://cdn.rawgit.com/RDCH106/browser-stats/a65086f7/browser_stats.html)