Skip to content

mufidu/pocket-to-markdown

Repository files navigation

Pocket to Markdown

This NPM package helps you to export Pocket articles to Markdown format using Postlight Parser. I personally use this for importing to Obsidian.

Output example can be found here.

How to use

  1. Clone this repository
git clone https://github.com/mufidu/pocket-to-markdown.git
  1. Install the package dependencies
npm install
  1. Download your Pocket articles as HTML from here.

  2. Replace the ril_export.html in this folder with the downloaded file.

  3. Run the script

npm start
  1. Download the remote images (optional)
python download_images.py

p.s. This will make the folder size much bigger if there are a lot of images.

Output Folder

By default, the output folder is articles. You can change it in index.js file.

Single article export

If you want to export a single article, you can use the singleWeb.js. Example:

node singleWeb.js https://mufidu.com/ansosmed/

About

Export all Pocket articles to markdown files, including tags and images. Great to use with Obsidian.

Resources

Stars

Watchers

Forks