第一步安装gem
gem install json
gem install contactlist-client
在rb里写
require 'contactlist-client'
require 'json'
contacts = ContactList::Client.fetch(account, password, type)
contacts.each do |contact|
puts "username: #{contact.username}, email: #{contact.email}"
end
account, string of your email or im account
password, string of your password
type, string of your email type of im, now support gmail, hotmail, yahoo, sohu, sina, tom, yeah, 163, 126, 189, 139 and msn
本文介绍了一种使用Ruby语言实现的邮件联系人抓取程序,通过安装特定的gem包并配置账号密码,可以从多种邮箱服务中获取联系人信息。
3668

被折叠的 条评论
为什么被折叠?



