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.
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.