Skip to content
Paul Newnes edited this page Nov 20, 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 at-present single function in this package imports the Squarespace XML, parses for links and creates a dataframe of downloadable links.

Functions

There's just one function:

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

Happy parsing!

Clone this wiki locally