[Q] Convert contacts2.db to .vcf

Search This thread

Andermeir

New member
Jun 26, 2014
1
0
Found the .rb File

Made an account just to post this. Found the .rb file after hours of searching. Had to make the modification as stated earlier in the post for changing the error output string. Used the instructions to install ruby and the 2 gems also stated earlier in the thread. Also to give credit to where I found it, it was on a gentleman named John Fremlin's blog. Enjoy
 

Attachments

  • contacts2-to-vcard.zip
    1.5 KB · Views: 2,170

matrx10503

Senior Member
Feb 3, 2010
367
30
La
OnePlus 8
C:\Ruby193\bin>C:\Ruby193\contacts2-to-vcard.rb > contacts.vcf
C:/Ruby193/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3/datab
ase.rb:91:in `initialize': no such table: raw_contacts (SQLite3::SQLException)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.10-x86-mingw32/lib/
sqlite3/database.rb:91:in `new'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.10-x86-mingw32/lib/
sqlite3/database.rb:91:in `prepare'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.10-x86-mingw32/lib/
sqlite3/database.rb:134:in `execute'
from C:/Ruby193/contacts2-to-vcard.rb:64:in `<main>'

Anyone knows what this means?
 

m3tamo0ph

Member
Sep 1, 2015
5
2
Online converter convert contacts2.db to vCard

Very simple online converter contacts2.db to vCard gsmrecovery.ru/index.php?lang=en

Enjoy :)
 
Last edited:
  • Like
Reactions: aydin.gsm1

jsschmid

Member
Sep 9, 2011
48
6
I'd really prefer to convert it on my own machine instead of uploading all my contacts to a web site where I don't know the operator and his / her objectives...
But everyone has to decide for him-/herself I guess.
 

jsschmid

Member
Sep 9, 2011
48
6
This paranoia! Who needs your contacts ??? )))

Everyone has to decide for themselves, I just wouldn't do it.
Call me paranoid ... I don't mind.
Just send me your contacts and I can see if can simulate an evil business with it ;)

Personally I'd prefer if I had the source code of the converter so I could just do it on my own machine... that's what open source is good for.
 

arnaudv6

New member
Jan 18, 2016
3
0
You can check my answer here, in the form of a python script.
It does read a DB view that I found more complete than the table read by ruby script attached up above.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Put your contacts2.db into the same folder as contacts2-to-vcard.rb
    install ruby, open command prompt and execute these lines
    Code:
    gem install sqlite3
    gem install vpim
    (path to contacts2-to-vcard.rb)/contacts2-to-vcard.rb > contacts.vcf

    if you get this error
    contacts2-to-vcard.rb:43:in `+': can't convert NoMethodError into String (TypeError)
    open the .rb file in a text editor, go to line 43 and change it to
    $stderr.print ""
    I ran into this when I used it. after you edit the file run it again and you should have your .vcf file sitting in the same folder as the script file and contacts2.db
    1
    Online converter convert contacts2.db to vCard

    Very simple online converter contacts2.db to vCard gsmrecovery.ru/index.php?lang=en

    Enjoy :)