Convert Google+ pages to Wordpress xml for import

Andrew ccb2d5c376 add License 1 month ago
aliases 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago
LICENSE.md ccb2d5c376 add License 1 month ago
README.md 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago
andr.sh 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago
config-sample.sh 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago
functions.sh 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago
post.sh 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago
wp.sh 6cf4698c02 initial commit of google plus takeout to wordpress xml 1 month ago

README.md

#andr

creates wordpress posts from Google+ takout data

quickstart

{
  ## install sh2
  cd ~
  git clone https://github.com/temptemp3/sh2.git -b andr sh2
  find sh2 -type f -name \*.sh | xargs chmod +x
  echo "export SH2=$( realpath sh2 )" tee -a .bashrc
  source .bashrc
  ## install jq
  ## install pandoc
  ## install wp-cli
  ## unzip takeout
  ## copy andr.sh script files into Takeout/Google+ Stream
  ## setup andr.sh config file
  ## run commands (below)
}

requirements

Uses

notes

(1) as is andr.sh script files are in path to Takeout/Google+ Stream. We may want to add path_to_takout_stream to config are modify script entry behavior.

(2) script requires config. see config-sample.sh and cp -v config{-sample,}.sh

(3) the main command is testing. We may want to give it a better name later, like main or something.

(4) non-public posts are skipped by default. We may want to modify this behavior through the config later.

env

Just one way to make it command like without renaming files ect. and to make the commands below look nicer.

alias andr='bash andr.sh'

commands

build site from takeout

andr testing 

build site from takeout using only first 10 posts

andr testing {1..10}