Giter VIP home page Giter VIP logo

csv-uploader's Introduction

Problem Statement:

Make a CSV Importer for Google Sheets that lets users drag and drop CSV files onto the Google Sheet. The moment they drop the CSV file, allow them to select which columns to import ๐Ÿ—‚๏ธ.

Approach to the Problem

The approach to this problem is that we can write the logic for getting the CSV file (i.e getting the input as a file) which when uploaded, directly gets appended to the current active spreadsheet. Now to implement the backend of the part, we can do it in two ways :-

  1. Utilize Google-APIs, via Nodejs OR Javascrip OR Python to write the code in the local where data can be read and dumped. We can upload the CSV file by specifying the spreadsheetID in which CSV has to be uploaded. Before uploading, we can for taking only specific columns too.
  2. We can open a new Spreadsheet, Navigate to Extensions and Open Appscrips, we can create a new .gs file write the logic for uploading the data in the specified format.

Google APIs

Refer to the below documentation to connect Google-APIs smoothly with the spreadsheets

https://www.notion.so/Uploading-CSV-file-to-Google-Spreadsheet-66758525d4ac41198944f980e2d7da4c

Steps to run the code

  1. Create a new Folder

  2. Download the project files

    git clone [email protected]:Iamayushgupta/CSV-Uploader.git
    
  3. Install npm package manager

    npm init -y
    
  4. Install the dependencies

    npm install
    
  5. Create a new Spreadsheet and add it's ID in the code image


  6. Create credentials.json and after authentication token.json will be dowloaded to access refresh token image


  7. Put the CSV file path which you want to be added image


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.