Skip to content

👻 🖲 Sanitize Ghost Blog SQL data on a schedule to ensure content quality.

Notifications You must be signed in to change notification settings

hackersandslackers/ghost-sql-sanitation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost Blog Data Sanitizer

Python Flask PyMySQL SQLAlchemy Google Cloud Functions GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Ensure the quality of your blog posts by generating missing meta data, enforcing consistency, and never letting fields go unpopulated. Ghost Blog Data Sanitizer is an automated job to protect authors from publishing posts with subpar or missing fields which are critical to SEO.

Getting Started

Installation is recommended with Pipenv:

$ git clone https://github.com/hackersandslackers/ghost-sql-sanitation.git
$ cd ghost-sql-sanitation
$ pipenv shell
$ pipenv update
$ python3 main.py

Installation via Poetry:

$ git clone https://github.com/hackersandslackers/bigquery-python-tutorial.git
$ cd ghost-sql-sanitation
$ poetry install
$ poetry run

Alternatively, try installing via setup.py:

$ git clone https://github.com/hackersandslackers/ghost-sql-sanitation.git
$ cd ghost-sql-sanitation
$ python3 setup.py run

The following environment variables are required to run this script:

  • DATABASE_USERNAME: User with access to your Ghost blog's database.
  • DATABASE_PASSWORD: Password for the above user.
  • DATABASE_HOST: The host name where your database lives (either a managed DB, or publicly accessible local DB)
  • DATABASE_NAME: The name of the database/schema where your Ghost tables live.
  • DATABASE_PORT: The port.
  • DATABASE_CERT (optional): Path to SSL certificate for protected databases.
  • DATABASE_PEM (optional): See above.
  • DATABASE_KEY (optional): See above.
  • SQL_FOLDER: The local folder (in this repo) where your SQL files live.

Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.

About

👻 🖲 Sanitize Ghost Blog SQL data on a schedule to ensure content quality.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages