зеркало из https://github.com/mozilla/pulse.git
…
|
||
---|---|---|
.. | ||
.python-version | ||
README.md | ||
__init__.py | ||
browser.py | ||
requirements.txt | ||
timers.py | ||
util.py |
README.md
Pulse data analysis
To begin data analysis:
Setup
- Download the latest data dump from re:dash.
- Move that file into this directory, renamed
data.csv
. - Install Python 3.6 and create a virtualenv with it.
- Activate that virtualenv.
- Install the dependencies using pip:
pip install -r requirements.txt
Running the tests
Tests are broken into their own Python files
After setting up your environment, the data in the CSV can be analyzed from the
analysis
directory by simply running python filename.py
. The available tests
are:
browser.py
- compares sentiment ratings with browser state metrics, such as the number of open tabs and windows.timers.py
- compares sentiment ratings with page timers: towindow.onLoad
,DOMContentLoaded
, first user interaction, and first paint.