如何访问 Kindle 亮点(API?)

发布于 2024-10-24 09:12:43 字数 1539 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

我只土不豪 2024-10-31 09:12:43

这将是一个令人惊奇的网络服务。亚马逊不为此提供 API。您可以在 kindle.amazon.com 上在线阅读公开集锦,但是,您还无法通过 API 将任何公开集锦集成到您的应用程序中。看来新的 Kindle Developers Kit 纯粹是为了在 Kindle 上创建应用程序,而且这个 kdk 中甚至没有用于访问公共亮点的 API 方法。

This would be an amazing web service. Amazon does not offer an API for this. You can read public highlights online at kindle.amazon.com, however, you cannot integrate any public highlights into your apps via an API yet. It seems that the new Kindle Developers Kit is purely for creating apps on the Kindle, and there is not even an API method for accessing public highlights in this kdk.

一曲爱恨情仇 2024-10-31 09:12:43

无耻的插件警报..

我编写了一个小型 PHP 类,可以帮助解决此问题:Kindle_Highlights

你可以在 github 上获取它

欢迎提出改进意见/建议。

我将在接下来的几周内改进/扩展它,但你应该能够获得你的 Kindle 亮点。

Shameless plug alert..

I've written a small PHP class that can help with this: Kindle_Highlights

You can get it on github.

Comments/suggestions welcome on improving it.

I will be improving/expanding this over the next few weeks, but as is you should be able to get at your kindle highlights.

帅冕 2024-10-31 09:12:43

用户登录后可以通过访问其“您的亮点”页面在网络上查看他们的亮点。据我所知,没有 API,也没有任何类型的 OAUTH 可以做,所以目前最好的解决方案是获取用户的亚马逊用户名/密码并从该页面中删除它们。

有总比没有好,但真正的 API 会激发我在 Kindle 亮点上想到的很多很酷的想法。

A user can see their highlights on the web after logging in by going to their "your highlights" page. As far as I know, there isn't an API, nor is there any sort of OAUTH thing that you could do so currently the best possible solution would be to get your user's amazon username/password and scrape them from that page.

It's better than nothing, but a real API would open up a lot of cool ideas that I've had on kindle highlights.

天生の放荡 2024-10-31 09:12:43

您随时可以在 kindle.amazon.com 上抓取该书的页面。我在js中编写了一个脚本来做到这一点,然后将其打包为一个Chrome插件,可以点亮在 Kindle 图书页面上时,但是(当然)亚马逊在一两周前刚刚更新了 DOM,现在需要更新以反映新的语义结构。这凸显了这种方法的弱点。 =\

希望有一天亚马逊能为我们提供一个 API,尽管我怀疑这可能会违反他们与出版商的协议。

You can always just scrape the book's page at kindle.amazon.com. I wrote a script in js to do this and then packaged it up as a Chrome plugin that lights up when on Kindle book page, but (of course) Amazon just updated the DOM a week or two ago and now it needs to be updated to reflect the new semantic structure. This highlights the weakness of this approach. =\

Hopefully someday Amazon will provide us with an API, though I suspect that this might run against their agreements with publishers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文