Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sources.browser: switch to use HPI + seanbreckenridge/browserexport #375

Merged
merged 4 commits into from
Feb 10, 2023

Conversation

karlicoss
Copy link
Owner

later will rename to browser, and implement defensive fallback onto browser_legacy

adapted from https://github.com/seanbreckenridge/promnesia/blob/master/promnesia_sean/sources/browsing.py

related: #339

Old vs new modules produce almost identical results (tested on all of my chrome & firefox databases). The only minor differences are:

  • old database timestamps end with +00:00 UTC, new ones with +00:00 -- likely because browserexport is using timezone.utc instead of pytz

  • previously locator was pointing at the database file, now it's pointing at the URL

    I guess it's not necessarily in the 'spirit' of locator field, but on the other hand, not that it's very useful to point to an sqlite file either.
    Perhaps later it could be in some sort of extra debug field instead.

@karlicoss
Copy link
Owner Author

@seanbreckenridge just fyi -- your module worked great, only had to add durations :)

…wserexport

later will rename to browser, and implement defensive fallback onto browser_old

adapted from https://github.com/seanbreckenridge/promnesia/blob/master/promnesia_sean/sources/browsing.py

related: #339

Old vs new modules produce almost identical results (tested on various chrome & firefox databases)
There are some minor differences vs the old module:

- old database timestamps end with +00:00 UTC, new ones with +00:00 -- likely because browserexport is using timezone.utc instead of pytz
- previously locator was pointing at the database file, now it's pointing at the URL

  I guess it's not necessarily in the 'spirit' of locator field, but on the other hand, not that it's very useful to point to an sqlite file either.
  Perhaps later it could be in some sort of extra debug field instead.
@karlicoss karlicoss force-pushed the wip-new-browser-export branch 4 times, most recently from c8f325e to 3c10b6e Compare February 10, 2023 00:23
- if my.browser.export is available try to hack HPI config and use it
- if not, fallback to promnesia.sources.browser_old
@karlicoss
Copy link
Owner Author

Heh, didn't believe I'd make this tmp_config thing work for a fallback, but it does 😀

@karlicoss karlicoss marked this pull request as ready for review February 10, 2023 00:47
also switch it to use ast module -- much easier & quicker to run
@karlicoss karlicoss merged commit 99f5bad into master Feb 10, 2023
@karlicoss karlicoss deleted the wip-new-browser-export branch February 10, 2023 20:58
purarue added a commit to purarue/dotfiles that referenced this pull request Feb 10, 2023
@purarue
Copy link
Contributor

purarue commented Feb 10, 2023

Switch was trivial 👍 , index looks good

purarue/dotfiles@f8c6866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants