home video vignettes via instagram
if you already have long videos on s3, you'll need to break them down into short snackable content first
start up an ec2 instance, referencing keypair location & public IP
ssh -i ".ssh/AWS_KEY_PAIR.pem" [email protected]
create a ssh key
ssh-keygen -t rsa -b 4096 -C "GITHUB ACCOUNT EMAIL ADDRESS"
then, access that key
cat .ssh/id_rsa.pub
then, paste that to the deploy keys for this project
finally, use git to clone this project onto your ec2 instance
git clone [email protected]:harrybrisson/brissonstagram.git
run the initialize script to set up everything you need program and module-wise
cd brissonstagram
bash initialize.sh
if you want to set up in a virtual environment, use the below to set up
python3 -m venv .env
source .env/bin/activate
now, add in your credentials for aws
nano authorizations/aws-credentials.json
then, you can start up tmux to keep the function going even if you disconnect
tmux
run the snackablize function!
python3 snackablize_videos.py
if you've already done the above steps, then all you'll need to do is the following
similar to how you did previously, you'll just want to add credentials for twitter & gmail
nano authorizations/twitter-credentials.json
nano authorizations/gmail-credentials.json
after you break down your videos into clips, you can run the post random memory script
python3 post_random_memory.py
you can also set up a crontab to run every 6 hours; edit your scheduled tasks using crontab -e
then add the below code at the end of the file
0 */6 * * * bash /home/ubuntu/brissonstagram/run.sh
is this a workaround to avoid instagramapi woes? https://developer.hootsuite.com/docs/message-scheduling ($240/yr?) https://buffer.com/developers/api/profiles#schedulesupdate (cancelled...)