taurgal / csv2vcf Goto Github PK
View Code? Open in Web Editor NEWConverts csv files to vcf format
License: GNU General Public License v3.0
Converts csv files to vcf format
License: GNU General Public License v3.0
I'm unclear on how to put together my json file correctly. The example you gave is too small to be sure that I'm pattern matching correctly.
Your provided example is turning a CSV with headers "NAME,MOBILE" into a json string '{"name":1, "tel":2}' to match with the VCF values 'n,tel'. I'm confused because the CSV header "Name" matches with the first json property name, but the second CSV header "Mobile" doesn't match the json. On the other hand, the second json property matches the VCF property "tel", but the first json property "name" doesn't match any VCF property.
Is the correct json pattern:
{ "vcf property": csv column reference, "vcf property 2": csv column reference 2, "vcf property 3": csv column reference 3 }
Or is it:
{ "csv column name": vcf property reference, "csv column name 2": vcf property reference 2, "csv column name 3": vcf property reference 3 }
I downloaded my contacts from google into csv, which gave me a file that had dozens of columns. I trimmed it down to "Name, Notes, Email, Phone". What should my json look like?
I'm currently using the powershell prompt python .\csv2vcf.py contacts.csv .\ '{ "name": 1, "email": 3, "phone": 4, "categories": 2 }'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.