-
Notifications
You must be signed in to change notification settings - Fork 61
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
[FEATURE REQ]fetch history and bookmarks from default browser #96
Comments
Good idea! import webbrowser
c = webbrowser.get()
print(c.name) # or print(c.basename) The above code gave |
In windows |
For windows, I found these SOF questions: Though I haven't tested these. |
>>> from winreg import HKEY_CURRENT_USER, OpenKey, QueryValueEx
>>> reg_path = r'Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice'
>>> with OpenKey(HKEY_CURRENT_USER, reg_path) as key:
... print(QueryValueEx(key, 'ProgId'))
...
('ChromeHTML', 1) The solution in Question 2 sorta works as you can see above.
As you can see, It's a jungle inside the registry. It is still possible to write a function that parses these names nonetheless. |
Thank you for mapping out those values. It indeed looks like a jungle haha, this feature will need quite a bit of manual work and some tricks. Do you want to take up this issue? xD |
No problem, I will begin researching and working on it. We'll need a lot of collaborative effort to ensure it works on as many platforms as possible though. |
Is your feature request related to a problem? Please describe.
Currently, it is possible to specify a specific browser or even all browsers but it would be interesting if you can specify that history and/or bookmarks be fetched from the default browser in use. This would most probably provide the most credible and recent history. I understand fetching from all browsers would work too but fetching from the default browser will provide the most recent and credible history all while having to only read from one browser.
Describe the solution you'd like
We could start by allowing
default
as a value to the-b
argument. As for the implementation I am open to ideas.The text was updated successfully, but these errors were encountered: