Skip to content

tensult/medium-to-wordpress-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

medium-to-wordpress-migration

Script to export Medium blogs to wordpress rss xml format

There are many methods for exporting individual user blogs from Medium to wordpress but we didn't find an easy way to move entire medium publication to wordpress so this script can help you to migrate both personal or publication medium blogs to wordpress.

Usage

Download the package

git clone https://github.com/tensult/medium-to-wordpress-migration.git
cd medium-to-wordpress-migration
npm install

Extract using Publication URL (https://medium.com/your-publication/latest)

  • node . -p https://medium.com/your-publication/latest

Extract using URLs files

  • node . -u <your-medium.urls.txt>
  • Keep one URL per line in your-medium.urls.txt

Extract using URLs as command line argument

  • node . -U "url1,url2"

Extract using HTML of (https://medium.com/your-publication/latest, https://medium.com/your-publication/stories/published or https://medium.com/me/stories/public)

  • Keep scroll till the end and then follow the below instructions Open Inspector in the browser (This is for Chrome and might vary for your browser)

Select root HTML tag

Copy HTML content

  • Use any text editor to save as <your-medium-listing.html> file.
  • node . -h <your-medium-listing.html>

Features

  • Github Gist using gist-github-shortcode plugin
  • Figures
  • Caching
    • Caches the URL output in downloadedUrls folder to avoid downloading the same URL again and again.

Releases

No releases published

Packages

No packages published