Skip to main content

Firefox History Statistics - Import places.sqlite extract into LibreOffice Calc

If you've followed the first part, you should have extracted from your places.sqlite copy a fairly large CSV file full of website visits. What are you waiting for? Double-click it, or File -> Open in LibreOffice Calc to launch the Text Import dialog.

Importing Correctly

You'll note from the last post that the export contains 5 columns: url,  host, rev_host, title, and timestamp.
By default, columns are imported as 'standard' text. But it is critical that you import any timestamps as a date/time field, so right click the column and choose the appropriate format.


Your data should open in spreadsheet form!

Create a Pivottable

  1. There are many ways to slice the data but a good start is with a Pivot table.
  2. Data-> Pivot table -> Create ... will launch the Pivot table wizard.
  3. Based on my spreadsheet, I chose the following:

Basic Date-Time Grouping

The timestamps will likely not be grouped at all with each different visit still listed even though it shares timestamps with another; the pivot table will be too granular.
A trick that has many extraneous applications is to group the Time field by Hour, Day, Month, or the interval of your choice.
To define your groupings, click on any timestamp then choose Data -> Group and Outline -> Group ...
Choose your settings in the following dialog.
Now you have an interactive, drillable report!
This report can be used to measure how effectively I'm using my time on the Internet. As far as invasions of privacy go, I may as well be the one snooping on myself.
Warning: As cool as this is, your browsing history, or reports thereof may not be safe to show colleagues or loved ones. Here there be monsters!

Comments

Popular posts from this blog

Transcode to PSP using Handbrake

Source: Handbrake 0.9.9.5530 64-bit edition Target: (Phat) Playstation Portable PSP-1000 , System Software: 6.60 Many internet articles on how to transcode video to PSP using Handbrake have not worked for me. Even the most helpful are incomplete. I hope this post will help fill in the blanks. There is no longer any PSP preset for Handbrake, but from what I can gather, the preset had only limited success as the x264 encoder would change syntax and settings between versions. Other presets that may have worked before, like 'iPod' and 'Apple-Universal' now do not. Here is what worked for me, step by step:

Firefox History Statistics - Extracting from Places.sqlite

If you want to take a look at Firefox surfing activity, the about:me add-on is a good start. However, it presents only one view of data and is thus limited in its ability to present more detailed statistics. We will view that data in a different program. So let's first extract it from the browsing history stored in the Places.sqlite file into a CSV file using a Firefox add-on. Step 1 - Locate and copy Places.sqlite to a working location On Windows machines, Places.sqlite is found in a directory similar to: C:\Users\User1\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\places.sqlite Copy the file to another location. The database will be locked while using Firefox, and the SQLite plugin we will use to open it.

Bloomberg JSON data into Libreoffice Calc

LibreOffice Calc has no inbuilt stock market functions, and a popular plugin which offered those has stopped working along with changes to Yahoo Finance. Luckily, we can get the latest quotes from Bloomberg. [2018-12-15] Bloomberg Finance is, understandably, blocking multiple simultaneous requests. A more flexible solution is using a Python Stock Scraper .