从电子邮件帐户获取联系人

发布于 2024-07-04 10:17:13 字数 86 浏览 3 评论 0原文

许多网站(如 Twitter、Facebook 等)允许用户输入电子邮件 ID 和密码,并据此“提取”联系人。

有人知道这是怎么做到的吗?

a lot of websites like twitter, facebook and others let the users enter their email id and pwd and 'extract' the contacts based on that.

Anyone know how this is done?

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

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

发布评论

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

评论(8

醉酒的小男人 2024-07-11 10:17:13

他们登录您的帐户并抓取内容,或使用公共 API。 无论哪种方式,这都不是我自己实施或使用的方法,因为我不会相信任何其他人拥有我的凭据。 我认为它教会用户不要对其凭据的保密性不加重视。

They login to your account and scrape the contents, or use a public API. Either way, it's not a method that I would implement or use myself because I wouldn't trust anyone else with my credentials. And I think it teaches users to be careless with the secrecy of their credentials.

惟欲睡 2024-07-11 10:17:13

撇开道德问题不谈,有一个商业图书馆可以为您做到这一点:http://www. octazen.com/product_abimporter.php

该库可用于 PHP、.NET、Java、Ruby 和 . 冷聚变。 它支持从数十种不同服务(包括所有主要服务)导入联系人。

它的许可证只需花费大约 100 美元,工作完美,并且(使用 Java 版本)只需要这一行代码即可从任何受支持的服务导入联系人:

List<Contact> contacts = SimpleAddressBookImporter.fetchContacts(emailAddress, password)

他们有另一个库可以从社交网络导入朋友列表,尽管我没试过那个。

Leaving aside the ethical questions, there's a commercial library available that can do this for you: http://www.octazen.com/product_abimporter.php

The library is available for PHP, .NET, Java, Ruby & ColdFusion. It supports importing contacts from dozens of different services (including all the main ones).

It only costs about $100 for a licence, works perfectly and (using the Java version) only requires this single line of code to import contacts from any of the supported services:

List<Contact> contacts = SimpleAddressBookImporter.fetchContacts(emailAddress, password)

They have another library that can import friend lists from social networks, though I haven't tried that one.

小兔几 2024-07-11 10:17:13

联系人列表 Java 库易于使用,并且与 Gmail、Yahoo!、是的,Hotmail 和 MSN。

The contact list Java library is easy to use and works well with Gmail, Yahoo!, yeah, Hotmail and MSN.

久随 2024-07-11 10:17:13

是的,我同意。 信任某个网站提供您的电子邮件凭据并不安全。 特别是在 gmail archiver (http ://it.slashdot.org/article.pl?sid=08/03/11/1723206&from=rss

但仅从程序化的角度来看,我想知道他们是如何做到这一点的。 也许Gmail hotmail和所有其他的确实有用户可以使用的API......我想需要更多地研究它。

yeah, I agree. trusting a site with your email credentials isnt safe. Especially after what was found by gmail archiver (http://it.slashdot.org/article.pl?sid=08/03/11/1723206&from=rss)

But just from programmatic POV I was wondering how they did this. maybe Gmail hotmail and all others do have API's which users can use....need to look into it more i guess.

负佳期 2024-07-11 10:17:13

我假设他们通过 POP3(公共 API)登录您的电子邮件帐户,或者他们了解网络邮件系统的 html 格式并读取 DOM。 然后,他们会找到您接收和发送电子邮件的任何人,并查看其自己的用户数据库以查找匹配项。

I assume they log into your email account, either by POP3, a public API or they know the html formatting of webmail systems and read the DOM. Then they find whoever you recieved and sent emails to and looks through it's own user database to find matches.

生活了然无味 2024-07-11 10:17:13

有可用的 API:

Yahoo --> http://developer.yahoo.com/addressbook/

Google --> http://code.google.com/apis/contacts/

AOL 没有(还)。

There are APis available:

Yahoo --> http://developer.yahoo.com/addressbook/

Google --> http://code.google.com/apis/contacts/

None for AOL (yet).

韵柒 2024-07-11 10:17:13

这就是 OAuth 的设计目的。 Google 已开始采用它。 它不存在与更典型的抓取相同的信任问题。

不幸的是,目前,人们往往只是询问您的密码,以您的身份登录,然后抓取信息,这远不安全,因为它使网站可以完全访问您的帐户。 这不是您应该复制、尽可能使用 OAuth 或等效内容的内容。

This is the sort of thing OAuth was designed for. Google have started to adopt it. It doesn't have the same trust issues as the more typical scraping.

Unfortunately, for the time being, people tend to just ask for your password, log in as you, and scrape the information, which is far less secure, as it gives the website total access to your account. This isn't something you should copy, use OAuth or an equivalent wherever possible.

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