jasonrwang / BrowserActivity_DayofWeek

Analyzes browser activity/productivity for macOS Safari and Chrome users.
Other
0 stars 0 forks source link

BrowserActivity_DayofWeek

Extracts history activity for Safari and Chrome on OS X/macOS and plots proportional amount of activity for different days of the week and for different hours of a day (localized by time zone).

Figure 1

Figure 2

I don't really know what this says about my behaviour and would like to process the data more in future versions to gain more insight.

To use:

  1. Download this script or git clone https://github.com/jasonrwang/BrowserActivity_DayofWeek.git so you have a local copy
  2. Use Terminal to navigate to find main.py
  3. Type in python main.py

Alternatively, if you download this as a ZIP to your Downloads folder, use python ~/Downloads/BrowserActivity_DayofWee-master/main.py from Terminal

Timezones:

Input into timezones.txt a comma separated list of timezones you were in. If you were only in one timezone, you will still need to use this.

Format: start_time,end_time,time_zone Times should be in ISO 8601 () format or 'now' (without quotations). Timezones should be in Olson time zones. Use 0,now,[Your timezone code] as a default.

Changelog

v0.4.2 Limited timezone support

v0.4.1 Hour of Day Analysis added

v0.3 Chrome added, Rename

v0.2 Percent Use

v0.1 Basic functionality added:


P.S. This is my first python script! I have a feeling it could be much faster since I suspect I did not use numpy to its full capabilities. Suggestions are welcome.