Skip to content
Paul Newnes edited this page Dec 31, 2020 · 6 revisions

Why this package?

Squarespace is a wonderful service, but recovering downloadable files is a pain. The only way to export your Squarespace site content is to an XML format that is ready to be imported to Wordpress.

What if you only need those downloadable files, such as PDFs? Unless you feel like parsing the exported XML or reconstituting into a Wordpress site, you're stuck. In fact, the latter option doesn't always work, hence why we wrote this package.

We wrote it in R, because that's the language we use and love the most.

The first function sqspRex imports the Squarespace XML, parses for links and creates a dataframe of downloadable links.

The second function sqspRimg gets the links to all the images that you uploaded as part of the site build.

Functions

sqspRex - the arguments are:

  1. file.types - a vector of the file types of your previously uploaded downloadables, eg doc, xls, pdf, xlsx.
  2. local.path - the local path of the XML file
  3. site.stem - the alias of your Squarespace site. For instance if you site is www.my-site.com your Squarespace alias may be something like mysite.squarespace.com or my-site.squarespace.com . This argument should not have the http prefix

sqspRimg - the arguments are:

  1. file.types - a vector of the image file types of your previously uploaded images, eg png, jpg, bmp, gif.
  2. local.path - the local path of the XML file

Happy parsing!

Clone this wiki locally