如何在没有 Firefox 的情况下访问 Firefox 同步书签
Firefox 4 将书签和其他设置同步到 mozilla 运行的主机。
- 我如何访问我的书签(没有 Firefox)?
- 有文档化的 API 吗?
似乎 https://developer.mozilla.org/en/Firefox_Sync 应该包含必要的文档,但是除第一个链接外的所有链接都指向空白页面。
我在这里找到了一个名为 weave.py 的脚本 https://github.com/ mozilla/weaveclient-python/blob/master/weave.py 应该能够访问这些书签,但它无法使用我的凭据。似乎期望用户名没有“@”字符。
有没有关于如何访问 Firefox 同步数据的文档。最好有例子。
现在我什至不知道这个所谓的网络服务的入口点。
当我访问 https://services.mozilla.com/ 时,我可以更改密码并可能删除所有内容。
Firefox 4 syncs bookmarks and other settings to a host run by mozilla.
- How do I access my bookmarks there (without Firefox)?
- Is there a documented API?
It seems https://developer.mozilla.org/en/Firefox_Sync should contain the neccessary documentation but all links except the first point to empty pages.
I found a script called weave.py here https://github.com/mozilla/weaveclient-python/blob/master/weave.py that is supposed to be able to access those bookmarks but it is unable to use my credentials. It seems to expect usernames without "@" characters.
Is there any documentation out there on how to access Firefox sync data. Preferably with examples.
Right now I don't even know the entry point to this supposed web service.
When I go to https://services.mozilla.com/ I can change my password and presumably remove everything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您查看 https://wiki.mozilla.org/Services/Sync,我认为这是您想要的文档。更多详细信息请参见 https://wiki.mozilla.org/Labs/Weave/Sync /1.1/API。
If you look at https://wiki.mozilla.org/Services/Sync, I think that's the documentation you want. More detail is at https://wiki.mozilla.org/Labs/Weave/Sync/1.1/API.
事实上,用户名是 sha1 + base32。 Python代码:
Indeed, the username is sha1 + base32. Python code:
ID.get("WeaveID").username
返回的 WeaveID 确实经过 SHA-1 哈希和 Base32 编码。在 Java 中执行此操作的一个好方法是使用 Apache Commons Codec,它从 1.5 版开始就包含 Base32:
The WeaveID returned by
ID.get("WeaveID").username
is indeed SHA-1 hashed and base32 encoded.A nice way to do this in Java is to use Apache Commons Codec, which includes Base32 since version 1.5: