Coder Social home page Coder Social logo

ttsukagoshi / wordpress-xml-to-sheets Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 23 KB

Convert XML exported from WordPress into Spreadsheet data using Google Sheets & Apps Script

Home Page: https://ttsukagoshi.github.io/scriptable-assets/gas-solutions/wordpress-xml-to-sheets/

License: Apache License 2.0

JavaScript 74.46% HTML 25.54%
wordpress xml-parser google-sheets google-apps-script

wordpress-xml-to-sheets's Introduction

WordPress XML to Google Sheets

GitHub Super-Linter Total alerts

Convert XML exported from WordPress onto Google Sheets.

About

A Spreadsheet-bound apps script solution to convert XML exported from the native WordPress tool into your Google Sheets file.

This is a solution with a very limited target: if you want to export the contents of your WordPress-powered website into your spreadsheet, using existing WordPress plugins should be your first choice. Crawl the web for keywords like wordpress and csv. Or if you are using WordPress versions 4.7 or later, you should be able to take advantage of the WordPress REST API, which, as part of the WordPress core features, would provide you with a more integrated experience.

This particular solution can be useful for those who do not/cannot install new plugins for some reason, and/or those who are using old versions of WordPress that are too old for newer features.

Install

You can either

  1. Copy this sample spreadsheet or
  2. Copy & paste the file contents inside the src directory of the GitHub repository using Google Sheets' script editor.

In the latter case,

  • Name the HTML file together with its directory src/, i.e, dialog.html should be save as src/dialog.html on the script editor. You wouldn't need to change the default file name code.gs; just copy the contents of xml2sheets.js into it.
  • Copy the contents of worksheets Template - Channel and Template - Items to your spreadsheet.

Be sure to reload the spreadsheet after saving the script.

How to Use

  1. From the menu, select WordPress XML to Sheets > Parse XML.
  2. You will be prompted to upload the XML file that you exported from your WordPress website. Select your file and Upload.
  3. After about a minute of waiting, you will see a couple of worksheets created on your spreadsheet. One to give you a summary of the website and the other for the whole list of contents that you exported.

Terms and Conditions

You must agree to the Terms and Conditions to use this solution.

wordpress-xml-to-sheets's People

Contributors

ttsukagoshi avatar

Stargazers

 avatar

Watchers

 avatar

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.