0.0
No commit activity in last 3 years
No release in over 3 years
Parses the opera browser contacts file (ending in .adr) to a ruby data structure. This can then be exported to vCard or whatever.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.0.0
~> 3.12
>= 0
 Project Readme

opera-contacts¶ ↑

This library parses the Opera browser’s contacts file (called ‘contacts.adr’).

Usage example:

require 'opera-contacts'
hotlist_string = File.open("contacts.adr", "r:UTF-8").read
contacts_tree = OperaContacts.parse_s(hotlist_string)

puts("== Top level items (folders or contacts)")
contacts_tree.each{|i| puts(i.name)}

puts("== Top level folders")
contacts_tree.folders.each{|f| puts(f.name)}

puts("== Top level contacts")
contacts_tree.contacts.each{|c| puts(c.name)}

Copyright © 2014 Stefan Schneider-Kennedy. See LICENSE.txt for further details.