Skip to content

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

Notifications You must be signed in to change notification settings

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. Update: Use this package to download the 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