I think the location on Linux (Ubuntu 16.04) is: ~/.config/google-chrome/Default or: ~/.config/chromium/Default
Analyzing Your Browser History Using Python and Pandas
31–40 of 42 posts
Re: Analyzing Your Browser History Using Python and Pandas
#32What about the cmd+shift+N stuff ;)
Re: Analyzing Your Browser History Using Python and Pandas
#33Earlier quoted context omitted.
Not quite. I tried that but some of the entries had vertical bars in URLs (Amazon urls), making Pandas complain and refuse to import the data.
Ahh I see. Then you should maybe us the Amazon example in your post to clarify why you are using this approach. Nice post by the way.
Re: Analyzing Your Browser History Using Python and Pandas
#34 Traceback (most recent call last):
File "hist.py", line 14, in
data.datetime = pd.to_datetime(data.datetime)
File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes.py", line 373, in to_datetime
values = _convert_listlike(arg._values, True, format)
File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes.py", line 306, in _convert_listlike
raise e
pandas._libs.tslib.OutOfBoundsDatetime: Out of bounds
nanosecond timestamp: 1601-01-01 00:00:00
The time on my Mac is correct, and datetime gets the correct time?Re: Analyzing Your Browser History Using Python and Pandas
#35Just tried this, but am getting an error with the datetime. How could I fix this? Traceback (most recent call last): File "hist.py", line 14, in data.datetime = pd.to_datetime(data.datetime) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes.py", line 373, in to_datetime values = _convert_listlike(arg._values, True, format) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes…
Re: Analyzing Your Browser History Using Python and Pandas
#36Just tried this, but am getting an error with the datetime. How could I fix this? Traceback (most recent call last): File "hist.py", line 14, in data.datetime = pd.to_datetime(data.datetime) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes.py", line 373, in to_datetime values = _convert_listlike(arg._values, True, format) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes…
Aah I got this strange issue too. Search for that 1601-01-01 time stamp in the exported text file and change it to something else that isn’t before the Unix epoch
How long is the Chrome database kept for? I use Chrome Canary and the standard Chrome, but only had a few hundred results in each, a lot less than I was expecting. I can't remember the last time I cleared my history either.
Cool graph though anyway!
Re: Analyzing Your Browser History Using Python and Pandas
#37Just tried this, but am getting an error with the datetime. How could I fix this? Traceback (most recent call last): File "hist.py", line 14, in data.datetime = pd.to_datetime(data.datetime) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes.py", line 373, in to_datetime values = _convert_listlike(arg._values, True, format) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes…
Aah I got this strange issue too. Search for that 1601-01-01 time stamp in the exported text file and change it to something else that isn’t before the Unix epoch
data.loc[data.datetime == '1601-01-01 00:00:00', 'datetime'] = '1970-01-01 00:00:00'Re: Analyzing Your Browser History Using Python and Pandas
#38Just tried this, but am getting an error with the datetime. How could I fix this? Traceback (most recent call last): File "hist.py", line 14, in data.datetime = pd.to_datetime(data.datetime) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes.py", line 373, in to_datetime values = _convert_listlike(arg._values, True, format) File "/usr/local/lib/python2.7/site-packages/pandas/core/tools/datetimes…
Aah I got this strange issue too. Search for that 1601-01-01 time stamp in the exported text file and change it to something else that isn’t before the Unix epoch
Re: Analyzing Your Browser History Using Python and Pandas
#39Earlier quoted context omitted.
Aah I got this strange issue too. Search for that 1601-01-01 time stamp in the exported text file and change it to something else that isn’t before the Unix epoch
That sorted it, cheers! How long is the Chrome database kept for? I use Chrome Canary and the standard Chrome, but only had a few hundred results in each, a lot less than I was expecting. I can't remember the last time I cleared my history either. Cool graph though anyway!
And, by the way, I’m not done with this series. Next week I’ll try to predict browsing patterns using this dataset.