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

Write a module to parse the history of Chrome/Chromium #71

Open
11111000000 opened this issue Sep 11, 2018 · 5 comments
Open

Write a module to parse the history of Chrome/Chromium #71

11111000000 opened this issue Sep 11, 2018 · 5 comments

Comments

@11111000000
Copy link

Add chromium history

@novoid novoid changed the title Add chromium history Write a module to parse the history of Chrome/Chromium Sep 22, 2018
@novoid
Copy link
Owner

novoid commented Sep 22, 2018

Memacs has a module that indexes the Firefox browsing history: https://github.com/novoid/Memacs/blob/master/docs/memacs_firefox_history.org
@11111000000 would like to see a similar module that deals with the Chrome/Chromium browsers and their history data.
Thanks for helping!

balaramadurai added a commit to balaramadurai/Memacs that referenced this issue Oct 3, 2018
- novoid#71
- These files are based on the firefox memacs module already present in the package
@balaramadurai
Copy link
Contributor

@novoid, Thank you for developing Memacs. It is really cool!

I added the chrome-history module to this through the PR - #79

Please let me know if this works!

Thanks and have a great day!
Bala

novoid pushed a commit that referenced this issue Oct 8, 2018
- #71
- These files are based on the firefox memacs module already present in the package
@novoid
Copy link
Owner

novoid commented Oct 8, 2018

@11111000000 can you confirm that the module works on your side?

@novoid
Copy link
Owner

novoid commented Oct 10, 2018

I installed Chrome and tried it myself and I now get:

vk@sherri ~/src/memacs (git)-[master] % PYTHONPATH="${HOME}/src/memacs/memacs:" python3 bin/memacs_chrome.py --file "$HOME/.config/google-chrome/Default/History"
Traceback (most recent call last):
  File "bin/memacs_chrome.py", line 5, in <module>
    from memacs.chrome import Chrome
  File "/home/vk/src/memacs/memacs/chrome.py", line 13, in <module>
    from lib.memacs import Memacs
  File "/home/vk/src/memacs/memacs/lib/memacs.py", line 8, in <module>
    from .orgwriter import OrgOutputWriter
  File "/home/vk/src/memacs/memacs/lib/orgwriter.py", line 11, in <module>
    from .reader import CommonReader
  File "/home/vk/src/memacs/memacs/lib/reader.py", line 7, in <module>
    import csv
  File "/home/vk/src/memacs/memacs/csv.py", line 12, in <module>
    from .lib.orgformat import OrgFormat
SystemError: Parent module '' not loaded, cannot perform relative import
1 vk@sherri ~/src/memacs (git)-[master] %

However, my unit tests and other modules are working fine. Does this error only occur at my side?

@balaramadurai What does your command look like?

@balaramadurai
Copy link
Contributor

I have created another PR - #81

Let's see if this one works. I realized that the python libraries I used were from pip install and hence has python2.7. So, I copied them from the github clone to the python3.6 python libraries. Now, it seems to have been updated.

Thanks and have a great day!
Bala

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

No branches or pull requests

3 participants