Skip to content

Python script to export posts/pages from WordPress API to markdown and maintain WP URLs

Notifications You must be signed in to change notification settings

GSA/datagov-wp-migration

Repository files navigation

datagov-wp-migration

Quick exploration of exporting content using the WordPress API.

Goals:

  • maintain WordPress URLs

Usage

Install python dependencies.

$ pipenv install

Run the script.

$ pipenv run python migrate.py

Test the site with Jekyll.

$ bundle install
$ bundle exec jekyll build

Copy the markdown files to GSA/datagov-website.

$ rsync -r output/ ../datagov-website/www.data.gov/

About

Python script to export posts/pages from WordPress API to markdown and maintain WP URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published