Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bs-k/r-ghost-cms
R script to publish posts on GHOST CMS powered blog via Gmail
https://github.com/bs-k/r-ghost-cms
Last synced: 9 days ago
JSON representation
R script to publish posts on GHOST CMS powered blog via Gmail
- Host: GitHub
- URL: https://github.com/bs-k/r-ghost-cms
- Owner: bs-k
- License: other
- Created: 2022-10-03T10:06:33.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T08:07:00.000Z (about 2 years ago)
- Last Synced: 2024-08-13T07:11:05.102Z (4 months ago)
- Language: R
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - bs-k/r-ghost-cms - R script to publish posts on GHOST CMS powered blog via Gmail (R)
README
# R-GHOST-CMS
Publish posts on your [Ghost CMS](https://ghost.org) powered blog by sending messages via Gmail.
# PRE REQUIREMENTS
1. Valid Gmail account (to which you will send your posts)
2. Google Cloud app with authorized OAuth credentials (key & secret)
3. Nginx server with R/RStudio instance and working Cron
4. Running instance of Ghost CMS# EMAIL STRUCTURE (BODY / EMAIL TEXT) - SAMPLE
> Url: https://samplesite.com/sample-news;
> Title: Sample post title;
> Img: https://samplesite.com/sample.img;
> Description: sample description placed in your posts body;
> Status: published# HOW TO
1. Create new directory on your Nginx server
2. Place both files in it (ghost-api.py & main.R)
3. Configure both files
4. Run CronR (see main.R details)
5. Edit crontab as below (scheduled .py job every minute):
> */1 * * * * /usr/bin/python3 "/YOUR-WORKING-DIRECTORY/ghost-api.py" ; rm /YOUR-WORKING-DIRECTORY/json.json > /YOUR-WORKING-DIRECTORY/cron.log# JUST BLOG!
If you configured everything properly, every post with the correct structure sent to your Gmail account will be posted to your Ghost CMS page automatically. Enjoy!