Coder Social home page Coder Social logo

csv-to-html's Introduction

CSV-to-HTML

Convert downloaded CSV files to HTML webpages.


Problem

Many small companies do not have the know-how or the resources to update their websites constantly. In these conditions, free collaborative products such as google sheets and docs become the go to tools for creating content. The issue arrives when translating this content into HTML for their webpages. They need simple but powerful tools, that specialize in specific jobs.


Solution

CSV-to-HTML requires the user to download the finished Google Sheet as a CSV, upload it and watch as it gets transformed into HTML that they can then upload to their websites. This is especially useful for CMS such as WordPress.


Setup

  1. Place your csv files in "CSV_Files" directory
  2. Using the "example.html" template as a guide, create your personalized Jinja2 template or use the "example.html" template
  3. When initializing the class, pass the name of your template as a value(template="example.html")
  4. Run your file as either CSVToHTML.loop_through_and_save() or CSVToHTML.loop_through_and_print()

class CSVToHTML:
    def __init__(self, template= "example.html", header_pos= 0, delimiter= ","):

References:

https://github.com/vividvilla/csvtotable https://github.com/derekeder/csv-to-html-table https://github.com/yeskarthik/CSV-to-HTML-report-generator/blob/master/csvtohtmls.py https://www.youtube.com/watch?v=lhpNRDGzInw

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.