Skip to content

splondike/opera-contacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Library to parse the Opera browser's contacts.adr (Hotlist) files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages