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
- sh2 https://github.com/temptemp3/sh2
- jq https://stedolan.github.io/jq/
- pandoc https://pandoc.org/
- wp-cli https://wp-cli.org/
notes
- 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. - script requires config. see config-sample.sh and
cp -v config{-sample,}.sh - the main command is
testing. We may want to give it a better name later, likemainor something. - 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}